Undefined symbols for architecture arm64

Hi there,

I am trying to resurrect an old project from when Corona Enterprise was paid for.

I’ve managed to sucessfully get the project building for the Simulator (on Mac Mini M1), but I can’t get it to build for my phone (iPhone 7, IOS v14.2). Xcode version 12.5.1.

I get a lot of errors referring to the libplayer.a file. I’ve pasted some of the build / errors below.

Does anyone know why this might be happening?

Are the errors related to the libplayer.a file, or is there something else going on I am missing?

Kind Regards,
Mike

Ld /Users/mm/Library/Developer/Xcode/DerivedData/xxxx-buxdrktfizimwletxnpxirveaphu/Build/Products/Debug-iphoneos/xxxx.app/xxxx normal (in target 'xxxx' from project 'xxxx')
    cd /Users/mm/Desktop/Files/xxxxEnterprise/ios
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ 
    -target arm64-apple-ios11.0 
    -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.5.sdk 
    -L/Users/mm/Library/Developer/Xcode/DerivedData/xxxx-buxdrktfizimwletxnpxirveaphu/Build/Products/Debug-iphoneos 
    -L/Users/mm/Desktop/Files/xxxxEnterprise/ios/CoronaEnterprise/Corona/ios/lib 
    -L/Users/mm/Desktop/Files/xxxxEnterprise/ios 
    -L/Users/mm/Desktop/Files/xxxxEnterprise/ios/CoronaEnterprise/Corona/ios/lib 
    -F/Users/mm/Library/Developer/Xcode/DerivedData/xxxx-buxdrktfizimwletxnpxirveaphu/Build/Products/Debug-iphoneos 
    -F/Users/mm/Desktop/Files/xxxxEnterprise/ios 
    -filelist /Users/mm/Library/Developer/Xcode/DerivedData/xxxx-buxdrktfizimwletxnpxirveaphu/Build/Intermediates.noindex/xxxx.build/Debug-iphoneos/xxxx.build/Objects-normal/arm64/xxxx.LinkFileList 
    -Xlinker 
    -object_path_lto 
    -Xlinker /Users/mm/Library/Developer/Xcode/DerivedData/xxxx-buxdrktfizimwletxnpxirveaphu/Build/Intermediates.noindex/xxxx.build/Debug-iphoneos/xxxx.build/Objects-normal/arm64/xxxx_lto.o 
    -Xlinker 
    -no_deduplicate 
    -fobjc-link-runtime 
    -all_load 
    -ObjC 
    -lobjc 
    -lsqlite3 
    -framework WebKit 
    -lplayer 
    -framework AdSupport 
    -framework CoreText 
    -framework AssetsLibrary 
    -framework AVFoundation 
    -framework CoreVideo 
    -framework GLKit 
    -weak_framework Accounts 
    -lc++ 
    -lnative-popup-social 
    -lplugin_library 
    -weak_framework Social 
    -framework AddressBook 
    -framework GameKit
    -framework AddressBookUI 
    -framework AudioToolbox 
    -framework CFNetwork 
    -framework CoreGraphics 
    -framework CoreLocation 
    -framework CoreMedia 
    -framework CoreMotion 
    -framework Foundation 
    -lz 
    -framework ImageIO 
    -lobjc 
    -lsqlite3 
    -framework MapKit 
    -framework MediaPlayer 
    -lplayer 
    -lnative-popup-activity 
    -framework MessageUI 
    -framework MobileCoreServices 
    -framework OpenAL 
    -framework OpenGLES 
    -framework QuartzCore 
    -lnotifications 
    -lgamenetwork-apple 
    -framework Security 
    -framework StoreKit 
    -framework SystemConfiguration 
    -weak_framework Twitter 
    -framework UIKit /Users/mm/Library/Developer/Xcode/DerivedData/xxxx-buxdrktfizimwletxnpxirveaphu/Build/Products/Debug-iphoneos/libplugin_library.a 
    -Xlinker 
    -no_adhoc_codesign 
    -Xlinker 
    -dependency_info 
    -Xlinker /Users/mm/Library/Developer/Xcode/DerivedData/xxxx-buxdrktfizimwletxnpxirveaphu/Build/Intermediates.noindex/xxxx.build/Debug-iphoneos/xxxx.build/Objects-normal/arm64/xxxx_dependency_info.dat 
    -o /Users/mm/Library/Developer/Xcode/DerivedData/xxxx-buxdrktfizimwletxnpxirveaphu/Build/Products/Debug-iphoneos/xxxx.app/xxxx

**Undefined symbols for architecture arm64**:
  "_objc_msgSend$CGColor", referenced from:
      Rtt::IPhoneDisplayObject::ValueForKey(lua_State*, char const*) const in libplayer.a(Rtt_IPhoneDisplayObject.o)
      Rtt::IPhoneWebPopup::ValueForKey(lua_State*, char const*) const in libplayer.a(Rtt_IPhoneWebPopup.o)
  "_objc_msgSend$CGImage", referenced from:
      Rtt::AppleFileBitmap::AppleFileBitmap(UIImage*, bool) in libplayer.a(Rtt_AppleBitmap.o)
      Rtt::AppleFileBitmap::AppleFileBitmap(UIImage*, bool) in libplayer.a(Rtt_AppleBitmap.o)
      Rtt::IPhoneFileBitmap::IPhoneFileBitmap(UIImage*, bool) in libplayer.a(Rtt_AppleBitmap.o)
  "_objc_msgSend$CGRectValue", referenced from:
      -[CoronaView keyboardWillShow:] in libplayer.a(CoronaViewPrivate.o)
      -[IPhoneWebView keyboardWasShown:] in libplayer.a(Rtt_IPhoneWebPopup.o)
      -[IPhoneWebView keyboardWasHidden:] in libplayer.a(Rtt_IPhoneWebPopup.o)
      -[Rtt_iOSWebViewContainer keyboardWasShown:] in libplayer.a(Rtt_IPhoneWebViewObject.o)
      -[Rtt_iOSWebViewContainer keyboardWasHidden:] in libplayer.a(Rtt_IPhoneWebViewObject.o)
  "_objc_msgSend$HTTPBody", referenced from:
      -[CustomURLConnection setTimeoutForRequest:delegate:] in libplayer.a(Rtt_ApplePlatform.o)
      -[CoronaURLConnection setTimeoutForRequest:delegate:] in libplayer.a(AppleNetworkRequest.o)
  "_objc_msgSend$ISOcountryCode", referenced from:
      ____ZN3Rtt19IPhoneMapViewObject14nearestAddressEP9lua_State_block_invoke in libplayer.a(Rtt_IPhoneMapViewObject.o)
  "_objc_msgSend$L", referenced from:
      -[CoronaAppDelegate execute:command:param:] in libplayer.a(CoronaAppDelegate.o)
  "_objc_msgSend$MIMEType", referenced from:
      -[CoronaConnectionDelegate connectionDidFinishLoading:] in libplayer.a(AppleNetworkRequest.o)
  "_objc_msgSend$Rtt_dataFromBase64String:", referenced from:
      Corona::DependencyUtils::DecodeBase64(lua_State*) in libplayer.a(Rtt_DependencyUtilsApple.o)
      Corona::DependencyUtils::Check(lua_State*) in libplayer.a(Rtt_DependencyUtilsApple.o)
  "_objc_msgSend$URL", referenced from:
      -[CustomURLConnection initWithRequest:delegate:filePath:resource:] in libplayer.a(Rtt_ApplePlatform.o)
      -[IPhoneWebView openWithRequest:baseURL:] in libplayer.a(Rtt_IPhoneWebPopup.o)
      -[IPhoneWebView webView:decidePolicyForNavigationAction:decisionHandler:] in libplayer.a(Rtt_IPhoneWebPopup.o)
      -[Rtt_iOSWebViewContainer loadRequest:baseURL:] in libplayer.a(Rtt_IPhoneWebViewObject.o)
      -[Rtt_iOSWebViewContainer webView:decidePolicyForNavigationAction:decisionHandler:] in libplayer.a(Rtt_IPhoneWebViewObject.o)
      -[Rtt_iOSWebViewContainer webView:didFinishNavigation:] in libplayer.a(Rtt_IPhoneWebViewObject.o)
      Corona::NetworkLibrary::cancel(lua_State*) in libplayer.a(NetworkLibrary.o)
      ...
  "_objc_msgSend$URLAssetWithURL:options:", referenced from:
      -[IPhoneVideoPickerControllerDelegate imagePickerController:didFinishPickingMediaWithInfo:] in libplayer.a(Rtt_IPhoneVideoProvider.o)
  "_objc_msgSend$URLWithString:", referenced from:
      Rtt::ApplePlatform::HttpRequest(NSString*, NSString*, NSDictionary*, NSString*, void (NSData*) block_pointer) const in libplayer.a(Rtt_ApplePlatform.o)
      Rtt::ApplePlatform::NetworkBaseRequest(lua_State*, char const*, char const*, Rtt::LuaResource*, int, NSString*) const in libplayer.a(Rtt_ApplePlatform.o)
      Rtt::IPhoneWebViewObject::GetBaseURLFromLuaState(lua_State*, int) in libplayer.a(Rtt_IPhoneWebViewObject.o)
      Rtt::IPhonePlatformBase::OpenURL(char const*) const in libplayer.a(Rtt_IPhonePlatformBase.o)
      Rtt::IPhonePlatformBase::CanOpenURL(char const*) const in libplayer.a(Rtt_IPhonePlatformBase.o)
      -[CoronaURLRequest initWit

See App Store submissions now open for iOS 16.1 and iPadOS 16.1 - Latest News - Apple Developer
Try using Xcode 14 and the latest Solar2D, or use an older version of Solar2D and the Xcode 12.

Excellent! I tried a couple older versions of Solar2D and found version 3647 worked.

My combination is therefore Corona-3647, Xcode 12.5.1 macOS 11.4, and iPhone 7 with OS 14.2.

All well out of date but main thing is it works.

Much appreciated,
Mike