distriqt / ANE-GooglePlayServices

Shared library including the Google Play Services Client Library
https://airnativeextensions.com
18 stars 1 forks source link

Undefined symbols for architecture arm64 #26

Closed ChacHauLam closed 1 year ago

ChacHauLam commented 1 year ago

Hi,

My dev environment is:

When building to .ipa I get this error:

compile-abc command line: C:\Users\chaca\sdks\air\AIRSDK_Windows\50.0.1.3\lib\aot/bin/compile-abc/compile-abc-64.exe -mtriple=arm64-apple-ios -filetype=obj -sdk C:\Users\chaca\sdks\air\AIRSDK_Windows\50.0.1.3\lib\aot/lib/avmglue.abc -fields C:\Users\chaca\sdks\air\AIRSDK_Windows\50.0.1.3\lib\aot/lib/air-fields.arm64-air.txt -as3debugger -O0 -ane-symbol=NativeWebViewExtInitializer -ane-symbol=NativeWebViewExtFinalizer -ane-symbol=firebasecoreExtInitializer -ane-symbol=firebasecoreExtFinalizer -ane-symbol=PushNotificationsExtInitializer -ane-symbol=PushNotificationsExtFinalizer -ane-symbol=CoreExtInitializer -ane-symbol=CoreExtFinalizer -ane-symbol=ApplicationExtInitializer -ane-symbol=ApplicationExtFinalizer -ane-symbol=DialogExtInitializer -ane-symbol=DialogExtFinalizer -ane-symbol=ShareExtInitializer -ane-symbol=ShareExtFinalizer -abc-file-list=c:\Workspace\Aquaeye\Air\carnival\bin\AOTBuildOutput2764122086073076203.tmp\ABCFilesList.txt

ld64 command line: C:\Users\chaca\sdks\air\AIRSDK_Windows\50.0.1.3\lib\aot/bin/ld64/ld64.exe -pie -ObjC -dead_strip -Z -arch arm64 -L"C:\\Users\\chaca\\sdks\\air\\AIRSDK_Windows\\50.0.1.3\\lib\\aot/stub" -sdk_version 15.0 -F"C:\\Users\\chaca\\sdks\\air\\AIRSDK_Windows\\50.0.1.3\\lib\\aot/stub" -L"C:\\Users\\chaca\\sdks\\air\\AIRSDK_Windows\\50.0.1.3\\lib\\aot/lib" -o "../aot4847718770077359703.tmp" -exported_symbol _main -exported_symbol __mh_execute_header "C:\\Users\\chaca\\sdks\\air\\AIRSDK_Windows\\50.0.1.3\\lib\\aot/lib/libRuntimeHMAOT.arm-air.a" "C:\\Users\\chaca\\sdks\\air\\AIRSDK_Windows\\50.0.1.3\\lib\\aot/lib/libNotification.arm-air.a" -lc++ -lSystem.B -lz -lobjc -framework CoreFoundation -framework UIKit -framework MobileCoreServices -framework CoreGraphics -framework Foundation -framework SystemConfiguration -framework AudioToolbox -framework CFNetwork -framework QuartzCore -framework OpenGLES -framework CoreLocation -framework CoreMedia -framework CoreVideo -framework AVFoundation -framework Security -framework GameController -framework CoreMotion -framework AssetsLibrary -framework WebKit -weak_framework SafariServices -framework WebKit -exported_symbol _NativeWebViewExtInitializer -exported_symbol _NativeWebViewExtFinalizer -lsqlite3 -lz -framework SystemConfiguration -framework StoreKit -framework Security -framework CoreTelephony -framework CoreData "-FC:\\Users\\chaca\\AppData\\Local\\Temp\\298577fe-703b-4511-ba4d-ef01306a5688" -framework "FirebaseCore" "-FC:\\Users\\chaca\\AppData\\Local\\Temp\\298577fe-703b-4511-ba4d-ef01306a5688" -framework "FirebaseCoreDiagnostics" "-FC:\\Users\\chaca\\AppData\\Local\\Temp\\298577fe-703b-4511-ba4d-ef01306a5688" -framework "FirebaseInstallations" "-FC:\\Users\\chaca\\AppData\\Local\\Temp\\298577fe-703b-4511-ba4d-ef01306a5688" -framework "GoogleAppMeasurement" "-FC:\\Users\\chaca\\AppData\\Local\\Temp\\298577fe-703b-4511-ba4d-ef01306a5688" -framework "GoogleDataTransport" "-FC:\\Users\\chaca\\AppData\\Local\\Temp\\298577fe-703b-4511-ba4d-ef01306a5688" -framework "GoogleUtilities" "-FC:\\Users\\chaca\\AppData\\Local\\Temp\\298577fe-703b-4511-ba4d-ef01306a5688" -framework "nanopb" "-FC:\\Users\\chaca\\AppData\\Local\\Temp\\298577fe-703b-4511-ba4d-ef01306a5688" -framework "PromisesObjC" -exported_symbol _firebasecoreExtInitializer -exported_symbol _firebasecoreExtFinalizer -framework UserNotifications -framework AddressBook -exported_symbol _PushNotificationsExtInitializer -exported_symbol _PushNotificationsExtFinalizer -lclang_rt.ios -ObjC -weak_framework UserNotifications -w "-FC:\\Users\\chaca\\AppData\\Local\\Temp\\844f2377-284e-44bc-997e-2c3d4279b8ff" -framework "CoreNativeExtension" -exported_symbol _CoreExtInitializer -exported_symbol _CoreExtFinalizer -w -exported_symbol _ApplicationExtInitializer -exported_symbol _ApplicationExtFinalizer -framework QuartzCore -framework Foundation -w -exported_symbol _DialogExtInitializer -exported_symbol _DialogExtFinalizer -framework MessageUI -framework Accounts -framework Social -framework ImageIO -w -exported_symbol _ShareExtInitializer -exported_symbol _ShareExtFinalizer -filelist "c:\\Workspace\\Aquaeye\\Air\\carnival\\bin\\AOTBuildOutput2764122086073076203.tmp\\OBJFilesList.txt" -ios_version_min 11.0
Undefined symbols for architecture arm64:
  "_objc_msgSend$setContext:", referenced from:
      _firebasecoreContextInitializer in C:\Users\chaca\AppData\Local\Temp\298577fe-703b-4511-ba4d-ef01306a5688\libcom.google.firebase.core.a(FirebaseCore.o)
      _firebasecoreContextFinalizer in C:\Users\chaca\AppData\Local\Temp\298577fe-703b-4511-ba4d-ef01306a5688\libcom.google.firebase.core.a(FirebaseCore.o)
  "_objc_msgSend$newFREObjectFromBoolean:", referenced from:
      _firebasecore_isSupported in C:\Users\chaca\AppData\Local\Temp\298577fe-703b-4511-ba4d-ef01306a5688\libcom.google.firebase.core.a(FirebaseCore.o)
  "_objc_msgSend$init", referenced from:
      _firebasecoreContextInitializer in C:\Users\chaca\AppData\Local\Temp\298577fe-703b-4511-ba4d-ef01306a5688\libcom.google.firebase.core.a(FirebaseCore.o)
  "_objc_msgSend$newFREObjectFromString:", referenced from:
      _firebasecore_version in C:\Users\chaca\AppData\Local\Temp\298577fe-703b-4511-ba4d-ef01306a5688\libcom.google.firebase.core.a(FirebaseCore.o)
      _firebasecore_implementation in C:\Users\chaca\AppData\Local\Temp\298577fe-703b-4511-ba4d-ef01306a5688\libcom.google.firebase.core.a(FirebaseCore.o)
  "_objc_msgSend$dispatchStatusEvent:code:level:", referenced from:
      -[DTFBCAIRExtensionContext dispatch:data:] in C:\Users\chaca\AppData\Local\Temp\298577fe-703b-4511-ba4d-ef01306a5688\libcom.google.firebase.core.a(DTFBCAIRExtensionContext.o)
  "_objc_msgSend$initWithFormat:arguments:", referenced from:
      -[DTFBCAIRExtensionContext log:message:] in C:\Users\chaca\AppData\Local\Temp\298577fe-703b-4511-ba4d-ef01306a5688\libcom.google.firebase.core.a(DTFBCAIRExtensionContext.o)
  "_objc_msgSend$log:message:", referenced from:
      -[DTFBCAIRExtensionContext log:message:] in C:\Users\chaca\AppData\Local\Temp\298577fe-703b-4511-ba4d-ef01306a5688\libcom.google.firebase.core.a(DTFBCAIRExtensionContext.o)
ld: symbol(s) not found for architecture arm64

..java.base/java.lang.Thread.getStackTrace(Thread.java:1606)
..com.adobe.air.DebugFile.printStack(DebugFile.java)
..com.adobe.air.InvalidInputException.<init>(InvalidInputException.java)
..com.adobe.air.ipa.AOTCompiler.generateMachineBinaries(AOTCompiler.java)
..com.adobe.air.ipa.IPAOutputStream.createIosBinary(IPAOutputStream.java)
..com.adobe.air.ipa.IPAOutputStream.access$100(IPAOutputStream.java)
..com.adobe.air.ipa.IPAOutputStream$CompileTask.run(IPAOutputStream.java)
..java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
..java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
..java.base/java.lang.Thread.run(Thread.java:834)
Stack trace:
..java.base/java.lang.Thread.getStackTrace(Thread.java:1606)
..com.adobe.air.DebugFile.printStack(DebugFile.java)
..com.adobe.air.InvalidInputException.<init>(InvalidInputException.java)
..com.adobe.air.ipa.IPAOutputStream$CompileTask.throwAppropriateException(IPAOutputStream.java)
..com.adobe.air.ipa.IPAOutputStream.finalizeSig(IPAOutputStream.java)
..com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java)
..com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java)
..com.adobe.air.ADT.parseArgsAndGo(ADT.java)
..com.adobe.air.ADT.run(ADT.java)
..com.adobe.air.ADT.main(ADT.java)
Stack trace:
Invalid input: Compilation failed while executing : ld64

Thanks in advance

marchbold commented 1 year ago

Looks like we may have pushed an update using the latest Xcode build tools. We are waiting for AIR to be updated to support this (which is causing this error currently).

You can use the previous release as it should contain the same versions of this extension. https://github.com/distriqt/ANE-GooglePlayServices/releases/tag/v27.2.0

ChacHauLam commented 1 year ago

Thanks that worked!