airsdk / Adobe-Runtime-Support

Report, track and discuss issues in Adobe AIR. Monitored by Adobe - and HARMAN - and maintained by the AIR community.
204 stars 11 forks source link

iOS Crash on App Start with this error: symbol '_$s10Foundation10CocoaErrorV4CodeVAA01_cD8ProtocolAAMc' not found, expected in '/System/Library/Frameworks/Foundation.framework/Foundation' #2768

Open shaymolho opened 1 year ago

shaymolho commented 1 year ago

This crash occurs on iPhone SE 2016 with IOS 13.4.1 Using lastest air sdk 50.2.3.3 and latest x code 14.3.1 crash log is here crash-2023-08-16-093209.ips.zip on another iOS the app works fine device logs here log2.txt

ipa is here https://easyupload.io/4hzsvc any idea?

shaymolho commented 1 year ago

@ajwfrost @marchbold

ajwfrost commented 1 year ago

Yes, according to the latest iPhoneOS SDK, that symbol is found in the Foundation framework, but it seems on older phones this isn't the case and the app should instead pick it up from the Swift library. Potentially we can change the linker order to try to get this working, but we may need to check how it handles it when you use Xcode for this directly.

I assume you have an ANE involved here?

See also #2685

shaymolho commented 1 year ago

Hi @ajwfrost ,

Is there a solution for this problem?

What is the miminum iOS version for app not to have this crash?

We currently cannot issue new iOS builds because of this issue, and waiting for you for further steps.

This is project.apm (note not using Iron source nor using any iron source mediations) project-apm.zip here is app descriptor my-app-ios-decriptor.zip We're building the ipa on macOS.

Thanks

ajwfrost commented 1 year ago

Hi

Can you please try re-packaging using the ADT version from the attached (this can be copied over the latest AIR SDK, in the "lib" folder, once it's unzipped..)

I am hoping that the re-ordering of the linker commands will mean that the symbols are picked up from the Swift foundation library now, rather than the framework...

It would be good if you're also able to have logging enabled when building, either via an adt.log file or via the AIR SDK Manager "troubleshooting" tab, so that we can see the updated ld64 command line...?

thanks

Andrew

adt.zip

shaymolho commented 1 year ago

Hi @ajwfrost This still doesn't work attached adt.log adt.log

ajwfrost commented 1 year ago

Hi

The linking line has -lSwiftCompat but I would also expect to see -lswiftCoreFoundation in order to get the right symbols included... are you able to add that in to the ANE?

thanks

shaymolho commented 1 year ago

Hi how to do that? in the final linking line you expect only -lswiftCoreFoundation or also -lSwiftCompat as well?

marchbold commented 1 year ago

@shaymolho Are you using our ANEs? Let me know which ones and I'll add this flag into it for you.

ajwfrost commented 1 year ago

I would assume both libraries are needed here.

Is the swift code (that's in these ANEs) part of some third party components? If not, do we know whether there's usage of something like the CocoaError structure? https://swiftinit.org/reference/5.6.1/foundation/cocoaerror

I'm wondering whether this is behind that missing symbol... (hoping we could perhaps set up a reproduction of this scenario here!)

thanks

shaymolho commented 1 year ago

@marchbold yes, u can see the app descriptor in a few comments above i attached it again here my-app-ios-decriptor.zip

shaymolho commented 1 year ago

the ANE that adds the lSwiftCompat is com.google.firebase.core.ane

marchbold commented 1 year ago

Yep, I'll get a test version of it built this morning.

marchbold commented 1 year ago

This build has the flag: com.google.firebase.core.ane.zip

shaymolho commented 1 year ago

did u change anything else or just added the flag to platform,xml? because i built with manually adding this flag (adt.log attached) and still crashes: adt.log

marchbold commented 1 year ago

I just added the additional flag. I don't see it in your log though are you certain you updated? Make sure you clear all caches etc if using an IDE.

shaymolho commented 1 year ago

i see it in the log: ld64 command line: /usr/bin/ld -pie -ObjC -dead_strip -Z -arch arm64 -L"/Users/aviv/flash_air_sdk_50/lib/aot/stub" -sdk_version 16.4 -F"/Users/aviv/flash_air_sdk_50/lib/aot/stub" -L"/Users/aviv/flash_air_sdk_50/lib/aot/lib" -o "../aot4384681983792917504.tmp" -exported_symbol _main -exported_symbol __mh_execute_header -x "/Users/aviv/flash_air_sdk_50/lib/aot/lib/libRuntimeHMAOT.arm-air.a" "/Users/aviv/flash_air_sdk_50/lib/aot/lib/libNotification.arm-air.a" -lc++ -lSystem.B -lz -lobjc -lclang_rt.ios -weak_framework AppTrackingTransparency -framework AdSupport -w -exported_symbol _IDFAExtInitializer -exported_symbol _IDFAExtFinalizer "-F/var/folders/56/j5mpmhm10jlbfcjg5fx6x4h80000gn/T/0fcd7dcb-6530-4448-89e7-9718900f7447" -framework "FBSDKLoginKit" -exported_symbol _FacebookLoginExtInitializer -exported_symbol _FacebookLoginExtFinalizer "-F/var/folders/56/j5mpmhm10jlbfcjg5fx6x4h80000gn/T/91f14876-21f0-4778-8ef5-318201eacdfd" -framework "Bolts" -exported_symbol _BoltsExtInitializer -exported_symbol _BoltsExtFinalizer -rpath /usr/lib/swift -lswiftCoreFoundation -lSwiftCompat -lsqlite3 -lz -framework SystemConfiguration -framework StoreKit -framework Security -framework CoreTelephony -framework CoreData "-F/var/folders/56/j5mpmhm10jlbfcjg5fx6x4h80000gn/T/0bd551ca-35d5-42fc-af38-9757053a7519" -framework "FBLPromises" -framework "FirebaseCore" -framework "FirebaseCoreExtension" -framework "FirebaseCoreInternal" -framework "FirebaseInstallations" -framework "GoogleAppMeasurement" -framework "GoogleDataTransport" -framework "GoogleUtilities" -framework "nanopb" -framework "PromisesSwift" -framework "FirebaseSharedSwift" -exported_symbol _firebasecoreExtInitializer -exported_symbol _firebasecoreExtFinalizer -ObjC -lz -lsqlite3 -w "-F/var/folders/56/j5mpmhm10jlbfcjg5fx6x4h80000gn/T/70d43a62-c994-4109-ab71-62b3a35abcbb" -framework "FirebaseCrashlytics" -framework "FirebaseSessions" -exported_symbol _FirebaseCrashlyticsExtInitializer -exported_symbol _FirebaseCrashlyticsExtFinalizer -framework UserNotifications -framework AddressBook -exported_symbol _PushNotificationsExtInitializer -exported_symbol _PushNotificationsExtFinalizer -lclang_rt.ios -ObjC -weak_framework UserNotifications -w "-F/var/folders/56/j5mpmhm10jlbfcjg5fx6x4h80000gn/T/4af94db6-1cd3-443a-952c-d0e573ba1428" -framework "CoreNativeExtension" -exported_symbol _CoreExtInitializer -exported_symbol _CoreExtFinalizer -rpath @executable_path/Frameworks -weak_framework Social -framework AuthenticationServices -framework SafariServices -framework Accelerate -framework CoreMotion -framework Accounts -framework Security "-F/var/folders/56/j5mpmhm10jlbfcjg5fx6x4h80000gn/T/b7836dd8-ecf6-4376-8e8a-8ba8c4ca546e" -framework "FBAEMKit" -framework "FBSDKCoreKit" -framework "FBSDKCoreKit_Basics" -exported_symbol _FacebookCoreExtInitializer -exported_symbol _FacebookCoreExtFinalizer -framework StoreKit -exported_symbol _InAppBillingExtInitializer -exported_symbol _InAppBillingExtFinalizer -lclang_rt.ios -liconv -framework AdSupport -framework iAd "-L/var/folders/56/j5mpmhm10jlbfcjg5fx6x4h80000gn/T/ce9713eb-f86f-4679-9f30-9afa5d9fc578" "-lAppsFlyerLib" -exported_symbol _AFExtensionInitializer -w -exported_symbol _ApplicationExtInitializer -exported_symbol _ApplicationExtFinalizer -framework Security -liconv -lz -w -exported_symbol _ZipUtilsExtInitializer -exported_symbol _ZipUtilsExtFinalizer -framework AuthenticationServices -exported_symbol _AppleSignInExtInitializer -exported_symbol _AppleSignInExtFinalizer -framework AVFoundation -framework AudioToolbox -framework MediaPlayer -w -exported_symbol _VolumeExtInitializer -exported_symbol _VolumeExtFinalizer -framework CoreHaptics -w -exported_symbol _VibrationExtInitializer -exported_symbol _VibrationExtFinalizer -framework MessageUI -framework Accounts -framework Social -framework ImageIO -w -exported_symbol _ShareExtInitializer -exported_symbol _ShareExtFinalizer "-F/var/folders/56/j5mpmhm10jlbfcjg5fx6x4h80000gn/T/301b2b10-caa8-44a8-9501-384e9825e2de" -framework "FirebaseAnalytics" -exported_symbol _FirebaseExtInitializer -exported_symbol _FirebaseExtFinalizer -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 -filelist "/Users/aviv/slota-svn/15.0/webapp/flex/slotagram-mobile-boot2/target/AOTBuildOutput4425336874712814990.tmp/OBJFilesList.txt" -ios_version_min 12.0 search for lswiftCoreFoundation

marchbold commented 1 year ago

Ah there are two builds in the log, I only looked at the first one which doesn't have it.

shaymolho commented 1 year ago

i"m trying with your ANE now, will update soon any other idea if doesn't work?

shaymolho commented 1 year ago

device-log.txt attached the device log (from my manual adding the flag attempt)

shaymolho commented 1 year ago

crash-log.zip this is the crash, the other one is device

shaymolho commented 1 year ago

@ajwfrost adding the flag -lswiftCoreFoundation didn't solve the problem with the suggested adt.jar. attached adt.log adt.log

ajwfrost commented 1 year ago

Hmm.. so despite that, it's still got the missing symbol:

expected in '/System/Library/Frameworks/Foundation.framework/Foundation'

Will need to check a bit further - we can just exclude it from the Foundation stub, but we'd likely have a number of symbols that need to change here..

thanks

shaymolho commented 1 year ago

ok, thanks let me know if i can help

sthompson-crestron commented 1 year ago

Trying to help, I did a build the 50.2.3 SDK and with the adt.jar posted here. In both cases, when running the application on 15.7.8 I got the following error:

dyld[1163]: Symbol not found: (_$s10Foundation4DataV15withUnsafeBytesyxxSWKXEKlF) Referenced from: '/private/var/containers/Bundle/Application/372BA38F-28BF-413E-A524-E80A98A26965/andros.app/CA_dbg_phone' Expected in: '/System/Library/Frameworks/Foundation.framework/Foundation'

I will have to investigate how to generate a log file out of adt as my commands are wrapped up in build scripts that I'll have to poke around in.

sthompson-crestron commented 1 year ago

I added -lswiftFoundation to the XML file for my build and it now runs without issue on 15.7.8. I also have SwiftCompat on there too.

    <option>-lswiftFoundation</option>
    <option>-lSwiftCompat</option>
ajwfrost commented 1 year ago

Thanks @sthompson-crestron - maybe I'd suggested the wrong library when asking @marchbold to add -lswiftCoreFoundation into the ANE, maybe it should be -lswiftFoundation instead..!

FYI, with the recent AIR SDKs, you can just have the AIR SDK Manager running at the "Troubleshooting" tab, and then ADT will automatically connect to it and dump out the debug log... (assuming your didn't block this when installing, macOS seems to give a warning about this..)

sthompson-crestron commented 1 year ago

OK. I will google the "AIR SDK Manager" ;-)

shaymolho commented 1 year ago

Thanks @sthompson-crestron , it's working also for us @marchbold can you please change the flag from -lswiftCoreFoundation to -lswiftFoundation and upload to apm? also @ajwfrost will you update air sdk with the new adt.jar u posted here? after those i'll close this issue

ajwfrost commented 1 year ago

@shaymolho thanks for checking this -> are you able to also confirm whether or not you need the updated ADT.jar file that we posted here? It sounds like it may just be that we need to include -lswiftFoundation without having to change the command-line ordering....

thanks

marchbold commented 1 year ago

Here's another update including that additional library option

com.google.firebase.core.v32.1.104.zip

Let me know if this works and I'll get the update published.

marchbold commented 1 year ago

@ajwfrost This doesn't seem to work when packaging for the ios simulator. I'm getting

ld: library not found for -lswiftFoundation

And without it I'm getting a list of missing symbols.

adt.log ``` ld64 command line: /usr/bin/ld -pie -ObjC -dead_strip -Z -arch x86_64 -syslibroot "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk" -L/usr/lib -F"/System/Library/Frameworks" -L"/Users/marchbold/work/sdks/air/AIRSDK_50.2.3/lib/aot/lib" -o "../aot7708806804944014132.tmp" -exported_symbol _main -exported_symbol __mh_execute_header -x "/Users/marchbold/work/sdks/air/AIRSDK_50.2.3/lib/aot/lib/libRuntimeInterpreter.x86-simulator-air.a" -lc++ -lSystem -U ___darwin_check_fd_set_overflow -lz -lobjc -lclang_rt.ios -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 -lclang_rt.ios -ObjC -weak_framework UserNotifications -w "-F/var/folders/tb/mhsb9xwj7kgbbtsjrcm3f5w40000gn/T/539b6b32-62a8-474f-a3f5-b0f73224277b" -framework "CoreNativeExtension" -exported_symbol _CoreExtInitializer -exported_symbol _CoreExtFinalizer -rpath /usr/lib/swift -lSwiftCompat -lsqlite3 -lz -framework SystemConfiguration -framework StoreKit -framework Security -framework CoreTelephony -framework CoreData "-F/var/folders/tb/mhsb9xwj7kgbbtsjrcm3f5w40000gn/T/530dbb0b-5237-4761-92cb-4ada61d35039" -framework "FBLPromises" -framework "FirebaseCore" -framework "FirebaseCoreExtension" -framework "FirebaseCoreInternal" -framework "FirebaseInstallations" -framework "GoogleAppMeasurement" -framework "GoogleDataTransport" -framework "GoogleUtilities" -framework "nanopb" -framework "PromisesSwift" -framework "FirebaseSharedSwift" -exported_symbol _FirebaseCoreExtInitializer -exported_symbol _FirebaseCoreExtFinalizer -licucore -lz -lxml2 -lsqlite3 -lc++ -ObjC -w "-F/var/folders/tb/mhsb9xwj7kgbbtsjrcm3f5w40000gn/T/c3021e94-137f-42ac-ab94-7e88d19c2fa5" -framework "FirebaseDatabase" -framework "FirebaseDatabaseSwift" -framework "leveldb-library" -exported_symbol _FirebaseDatabaseExtInitializer -exported_symbol _FirebaseDatabaseExtFinalizer "-F/var/folders/tb/mhsb9xwj7kgbbtsjrcm3f5w40000gn/T/f671c410-9498-4661-96f2-5bb8bce0b6e4" -framework "FirebaseAnalytics" -exported_symbol _FirebaseExtInitializer -exported_symbol _FirebaseExtFinalizer -framework SafariServices -framework Security -ObjC -w "-F/var/folders/tb/mhsb9xwj7kgbbtsjrcm3f5w40000gn/T/f4fbfafb-0ad3-49fc-ab27-bc9b3a83cf7d" -framework "FirebaseAppCheckInterop" -framework "FirebaseAuth" -framework "GTMSessionFetcher" -exported_symbol _FirebaseAuthExtInitializer -exported_symbol _FirebaseAuthExtFinalizer -filelist "/Users/marchbold/work/distriqt/extensions/extensions/firebase/source/extensions/database/example/starling/bin-debug/AOTBuildOutput1769536892830624896.tmp/OBJFilesList.txt" -platform_version ios-simulator 11.0 16.4 Undefined symbols for architecture x86_64: "_$s3Keys30KeyedDecodingContainerProtocolPTl", referenced from: _$s19FirebaseSharedSwift27_JSONKeyedDecodingContainer33_6D166423BA39F764DCB8915CD73AA0F1LLVyxGs05KeyedeF8ProtocolAAMc in FirebaseSharedSwift(FirebaseDataEncoder.o) "_$s3Keys30KeyedEncodingContainerProtocolPTl", referenced from: _$s19FirebaseSharedSwift27_JSONKeyedEncodingContainer33_6D166423BA39F764DCB8915CD73AA0F1LLVyxGs05KeyedeF8ProtocolAAMc in FirebaseSharedSwift(FirebaseDataEncoder.o) "_$s7ElementSTTl", referenced from: _$s20FirebaseCoreInternal10RingBufferVyxGSTAAMc in FirebaseCoreInternal(RingBuffer.o) _$s8Promises7PromiseC6reduce2on__ACyxGSo17OS_dispatch_queueC_qd__AFx_7ElementQyd__tKctSTRd__lFA2F_AJtXEfU_ in PromisesSwift(Promise+Reduce.o) l_objectdestroy in PromisesSwift(Promise+Reduce.o) _$s8Promises7PromiseC6reduce2on__ACyxGSo17OS_dispatch_queueC_qd__AFx_7ElementQyd__tKctSTRd__lFA2F_AJtXEfU_AFxKcfU_TA in PromisesSwift(Promise+Reduce.o) "_$s8AllCasess12CaseIterablePTl", referenced from: _$s20FirebaseCoreInternal10TimePeriodOs12CaseIterableAAMc in FirebaseCoreInternal(Heartbeat.o) "_$s8Dispatch0A13WorkItemFlagsVMa", referenced from: _$s20FirebaseCoreInternal16HeartbeatStorageC17readAndWriteAsync5usingyAA16HeartbeatsBundleVSgAHc_tF in FirebaseCoreInternal(HeartbeatStorage.o) "_$s8Dispatch0A13WorkItemFlagsVMn", referenced from: _symbolic Say_____G 8Dispatch0A13WorkItemFlagsV in FirebaseCoreInternal(HeartbeatStorage.o) "_$s8Dispatch0A13WorkItemFlagsVs10SetAlgebraAAMc", referenced from: _$s20FirebaseCoreInternal16HeartbeatStorageC17readAndWriteAsync5usingyAA16HeartbeatsBundleVSgAHc_tF in FirebaseCoreInternal(HeartbeatStorage.o) "_$s8Dispatch0A3QoSV11unspecifiedACvgZ", referenced from: _$s20FirebaseCoreInternal16HeartbeatStorageC17readAndWriteAsync5usingyAA16HeartbeatsBundleVSgAHc_tF in FirebaseCoreInternal(HeartbeatStorage.o) _$s20FirebaseCoreInternal16HeartbeatStorageC2id7storageACSS_AA0E0_ptcfcTf4gnn_nTf4nen_nAA04FileE0C_Tg5 in FirebaseCoreInternal(HeartbeatStorage.o) "_$s8Dispatch0A3QoSVMa", referenced from: _$s20FirebaseCoreInternal16HeartbeatStorageC17readAndWriteAsync5usingyAA16HeartbeatsBundleVSgAHc_tF in FirebaseCoreInternal(HeartbeatStorage.o) _$s20FirebaseCoreInternal16HeartbeatStorageC2id7storageACSS_AA0E0_ptcfcTf4gnn_nTf4nen_nAA04FileE0C_Tg5 in FirebaseCoreInternal(HeartbeatStorage.o) "_$s8IteratorSTTl", referenced from: _$s20FirebaseCoreInternal10RingBufferVyxGSTAAMc in FirebaseCoreInternal(RingBuffer.o) "_$s8RawValueSYTl", referenced from: _$s20FirebaseCoreInternal10TimePeriodOSYAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV10CodingKeysOSYAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) "_$sBOWV", referenced from: _$s20FirebaseCoreInternal25_ObjC_HeartbeatControllerCMf in FirebaseCoreInternal(_ObjC_HeartbeatController.o) _$s20FirebaseCoreInternal23_ObjC_HeartbeatsPayloadCMf in FirebaseCoreInternal(_ObjC_HeartbeatsPayload.o) _$s20FirebaseCoreInternal11FileStorageCMr in FirebaseCoreInternal(Storage.o) _$s8Promises7PromiseCMr in PromisesSwift(Promise.o) "_$sBbWV", referenced from: _$s20FirebaseCoreInternal9HeartbeatVMr in FirebaseCoreInternal(Heartbeat.o) _$s19FirebaseSharedSwift20_JSONDecodingStorage33_6D166423BA39F764DCB8915CD73AA0F1LLVMf in FirebaseSharedSwift(FirebaseDataEncoder.o) _$s19FirebaseSharedSwift20_JSONEncodingStorage33_6D166423BA39F764DCB8915CD73AA0F1LLVMf in FirebaseSharedSwift(FirebaseDataEncoder.o) "_$sBi64_WV", referenced from: _$s20FirebaseCoreInternal9HeartbeatVMr in FirebaseCoreInternal(Heartbeat.o) "_$sBoWV", referenced from: _$s20FirebaseCoreInternal19HeartbeatControllerCMf in FirebaseCoreInternal(HeartbeatController.o) _$s20FirebaseCoreInternal16HeartbeatStorageCMf in FirebaseCoreInternal(HeartbeatStorage.o) _$s20FirebaseCoreInternal11FileStorageCMf in FirebaseCoreInternal(Storage.o) _$s20FirebaseCoreInternal19UserDefaultsStorageCMf in FirebaseCoreInternal(Storage.o) _$s19FirebaseSharedSwift0A11DataEncoderCMf in FirebaseSharedSwift(FirebaseDataEncoder.o) _$s19FirebaseSharedSwift13__JSONEncoder33_6D166423BA39F764DCB8915CD73AA0F1LLCMf in FirebaseSharedSwift(FirebaseDataEncoder.o) _$s19FirebaseSharedSwift24__JSONReferencingEncoder33_6D166423BA39F764DCB8915CD73AA0F1LLCMf in FirebaseSharedSwift(FirebaseDataEncoder.o) ... "_$sSD4KeysVMa", referenced from: _$sSD4KeysVySSyp_GMa in FirebaseSharedSwift(FirebaseDataEncoder.o) "_$sSD4KeysVMn", referenced from: _symbolic _____ySSyp_G SD4KeysV in FirebaseSharedSwift(FirebaseDataEncoder.o) "_$sSD4KeysVyxq__GSTsMc", referenced from: _$s19FirebaseSharedSwift27_JSONKeyedDecodingContainer33_6D166423BA39F764DCB8915CD73AA0F1LLV7allKeysSayxGvg in FirebaseSharedSwift(FirebaseDataEncoder.o) "_$sSDMa", referenced from: _$sSDy20FirebaseCoreInternal10TimePeriodO10Foundation4DateVGMa in FirebaseCoreInternal(HeartbeatsBundle.o) _$sSDyS2SGMa in FirebaseDatabaseSwift(ServerTimestamp.o) "_$sSDMn", referenced from: _$sSDyxq_G19FirebaseSharedSwift36_JSONStringDictionaryEncodableMarker33_6D166423BA39F764DCB8915CD73AA0F1LLABSSRszSER_rlMc in FirebaseSharedSwift(FirebaseDataEncoder.o) _$sSDyxq_G19FirebaseSharedSwift36_JSONStringDictionaryDecodableMarker33_6D166423BA39F764DCB8915CD73AA0F1LLABSSRszSeR_rlMc in FirebaseSharedSwift(FirebaseDataEncoder.o) "_$sSDyxq_GSEsSERzSER_rlMc", referenced from: _$sSDy20FirebaseCoreInternal10TimePeriodO10Foundation4DateVGSDyxq_GSEsSERzSER_rlWl in FirebaseCoreInternal(HeartbeatsBundle.o) _$sSDyS2SGSDyxq_GSEsSERzSER_rlWl in FirebaseDatabaseSwift(ServerTimestamp.o) "_$sSDyxq_GSesSeRzSeR_rlMc", referenced from: _$sSDy20FirebaseCoreInternal10TimePeriodO10Foundation4DateVGSDyxq_GSesSeRzSeR_rlWl in FirebaseCoreInternal(HeartbeatsBundle.o) "_$sSE6encode2toys7Encoder_p_tKFTj", referenced from: _$s19FirebaseSharedSwift13__JSONEncoder33_6D166423BA39F764DCB8915CD73AA0F1LLC4box_ySo8NSObjectCSgSE_pKF in FirebaseSharedSwift(FirebaseDataEncoder.o) "_$sSE6encode2toys7Encoder_p_tKFTq", referenced from: _$s20FirebaseCoreInternal9HeartbeatVSEAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal10TimePeriodOSEAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal16HeartbeatsBundleVSEAAMc in FirebaseCoreInternal(HeartbeatsBundle.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadVSEAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV09UserAgentE0VSEAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal10RingBufferVyxGSEAASeRzSERzlMc in FirebaseCoreInternal(RingBuffer.o) _$s21FirebaseDatabaseSwift15ServerTimestampVSEAAMc in FirebaseDatabaseSwift(ServerTimestamp.o) ... "_$sSEMp", referenced from: _$s20FirebaseCoreInternal9HeartbeatVSEAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal10TimePeriodOSEAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal16HeartbeatsBundleVSEAAMc in FirebaseCoreInternal(HeartbeatsBundle.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadVSEAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV09UserAgentE0VSEAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal10RingBufferVyxGSEAASeRzSERzlMc in FirebaseCoreInternal(RingBuffer.o) _$s20FirebaseCoreInternal10RingBufferVyxGSeAASeRzSERzlMc in FirebaseCoreInternal(RingBuffer.o) ... "_$sSH13_rawHashValue4seedS2i_tFTj", referenced from: _$ss22__RawDictionaryStorageC4findys10_HashTableV6BucketV6bucket_Sb5foundtxSHRzlFs17CodingUserInfoKeyV_Tg5 in FirebaseSharedSwift(FirebaseDataEncoder.o) "_$sSH13_rawHashValue4seedS2i_tFTq", referenced from: _$s20FirebaseCoreInternal9HeartbeatV10CodingKeys33_892FDFB2EE9CA6459078D54BCB3472D2LLOSHAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal10TimePeriodOSHAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal16HeartbeatsBundleV10CodingKeys33_DA2CD673DFB14EB4EF31ED1E0C34DBC6LLOSHAAMc in FirebaseCoreInternal(HeartbeatsBundle.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV10CodingKeysOSHAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV09UserAgentE0V10CodingKeys33_72A6A1068455B8734FAE5DFEDE1B0B2ELLOSHAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal10RingBufferV10CodingKeys33_F496AD9081B84863A1C6F76A0399CD19LLOyx_GSHAAMc in FirebaseCoreInternal(RingBuffer.o) _$s20FirebaseCoreInternal12StorageErrorOSHAAMc in FirebaseCoreInternal(Storage.o) ... "_$sSH4hash4intoys6HasherVz_tFTj", referenced from: _$s21FirebaseDatabaseSwift15ServerTimestampV4hash4intoys6HasherVz_tF in FirebaseDatabaseSwift(ServerTimestamp.o) _$s21FirebaseDatabaseSwift15ServerTimestampV9hashValueSivg in FirebaseDatabaseSwift(ServerTimestamp.o) _$s21FirebaseDatabaseSwift15ServerTimestampVSHAASH4hash4intoys6HasherVz_tFTW in FirebaseDatabaseSwift(ServerTimestamp.o) _$s21FirebaseDatabaseSwift15ServerTimestampVSHAASH13_rawHashValue4seedS2i_tFTW in FirebaseDatabaseSwift(ServerTimestamp.o) "_$sSH4hash4intoys6HasherVz_tFTq", referenced from: _$s20FirebaseCoreInternal9HeartbeatV10CodingKeys33_892FDFB2EE9CA6459078D54BCB3472D2LLOSHAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal10TimePeriodOSHAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal16HeartbeatsBundleV10CodingKeys33_DA2CD673DFB14EB4EF31ED1E0C34DBC6LLOSHAAMc in FirebaseCoreInternal(HeartbeatsBundle.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV10CodingKeysOSHAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV09UserAgentE0V10CodingKeys33_72A6A1068455B8734FAE5DFEDE1B0B2ELLOSHAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal10RingBufferV10CodingKeys33_F496AD9081B84863A1C6F76A0399CD19LLOyx_GSHAAMc in FirebaseCoreInternal(RingBuffer.o) _$s20FirebaseCoreInternal12StorageErrorOSHAAMc in FirebaseCoreInternal(Storage.o) ... "_$sSH9hashValueSivgTq", referenced from: _$s20FirebaseCoreInternal9HeartbeatV10CodingKeys33_892FDFB2EE9CA6459078D54BCB3472D2LLOSHAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal10TimePeriodOSHAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal16HeartbeatsBundleV10CodingKeys33_DA2CD673DFB14EB4EF31ED1E0C34DBC6LLOSHAAMc in FirebaseCoreInternal(HeartbeatsBundle.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV10CodingKeysOSHAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV09UserAgentE0V10CodingKeys33_72A6A1068455B8734FAE5DFEDE1B0B2ELLOSHAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal10RingBufferV10CodingKeys33_F496AD9081B84863A1C6F76A0399CD19LLOyx_GSHAAMc in FirebaseCoreInternal(RingBuffer.o) _$s20FirebaseCoreInternal12StorageErrorOSHAAMc in FirebaseCoreInternal(Storage.o) ... "_$sSHMp", referenced from: _$s20FirebaseCoreInternal9HeartbeatV10CodingKeys33_892FDFB2EE9CA6459078D54BCB3472D2LLOSHAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal10TimePeriodOSHAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal16HeartbeatsBundleV10CodingKeys33_DA2CD673DFB14EB4EF31ED1E0C34DBC6LLOSHAAMc in FirebaseCoreInternal(HeartbeatsBundle.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV10CodingKeysOSHAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV09UserAgentE0V10CodingKeys33_72A6A1068455B8734FAE5DFEDE1B0B2ELLOSHAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal10RingBufferV10CodingKeys33_F496AD9081B84863A1C6F76A0399CD19LLOyx_GSHAAMc in FirebaseCoreInternal(RingBuffer.o) _$s20FirebaseCoreInternal12StorageErrorOSHAAMc in FirebaseCoreInternal(Storage.o) ... "_$sSHSQTb", referenced from: _$s20FirebaseCoreInternal9HeartbeatV10CodingKeys33_892FDFB2EE9CA6459078D54BCB3472D2LLOSHAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal10TimePeriodOSHAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal16HeartbeatsBundleV10CodingKeys33_DA2CD673DFB14EB4EF31ED1E0C34DBC6LLOSHAAMc in FirebaseCoreInternal(HeartbeatsBundle.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV10CodingKeysOSHAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV09UserAgentE0V10CodingKeys33_72A6A1068455B8734FAE5DFEDE1B0B2ELLOSHAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal10RingBufferV10CodingKeys33_F496AD9081B84863A1C6F76A0399CD19LLOyx_GSHAAMc in FirebaseCoreInternal(RingBuffer.o) _$s20FirebaseCoreInternal12StorageErrorOSHAAMc in FirebaseCoreInternal(Storage.o) ... "_$sSKsSS7ElementRtzrlE6joined9separatorS2S_tF", referenced from: _$s19FirebaseSharedSwift0A11DataEncoderC19KeyEncodingStrategyO19_convertToSnakeCase33_6D166423BA39F764DCB8915CD73AA0F1LLyS2SFZTf4nd_n in FirebaseSharedSwift(FirebaseDataEncoder.o) _$s19FirebaseSharedSwift0A11DataDecoderC19KeyDecodingStrategyO21_convertFromSnakeCase33_6D166423BA39F764DCB8915CD73AA0F1LLyS2SFZTf4nd_n in FirebaseSharedSwift(FirebaseDataEncoder.o) "_$sSQ2eeoiySbx_xtFZTj", referenced from: _$sSasSQRzlE2eeoiySbSayxG_ABtFZ20FirebaseCoreInternal17HeartbeatsPayloadV09UserAgentF0V_Tg5Tf4nnd_n in FirebaseCoreInternal(HeartbeatsPayload.o) _$sSasSQRzlE2eeoiySbSayxG_ABtFZ10Foundation4DateV_Tg5Tf4nnd_n in FirebaseCoreInternal(HeartbeatsPayload.o) _$s8Promises2eeoiySbAA5MaybeOyxG_AEtSQRzlF in PromisesSwift(Promise+Any.o) _$ss22__RawDictionaryStorageC4find_9hashValues10_HashTableV6BucketV6bucket_Sb5foundtx_SitSHRzlFs17CodingUserInfoKeyV_Tg5 in FirebaseSharedSwift(FirebaseDataEncoder.o) _$s21FirebaseDatabaseSwift15ServerTimestampV2eeoiySbAC_ACtFZTf4nnd_n in FirebaseDatabaseSwift(ServerTimestamp.o) "_$sSQ2eeoiySbx_xtFZTq", referenced from: _$s20FirebaseCoreInternal9HeartbeatVSQAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal10TimePeriodOSQAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal9HeartbeatV10CodingKeys33_892FDFB2EE9CA6459078D54BCB3472D2LLOSQAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal16HeartbeatsBundleV10CodingKeys33_DA2CD673DFB14EB4EF31ED1E0C34DBC6LLOSQAAMc in FirebaseCoreInternal(HeartbeatsBundle.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadVSQAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV10CodingKeysOSQAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV09UserAgentE0VSQAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) ... "_$sSQMp", referenced from: _$s20FirebaseCoreInternal9HeartbeatVSQAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal10TimePeriodOSQAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal9HeartbeatV10CodingKeys33_892FDFB2EE9CA6459078D54BCB3472D2LLOSQAAMc in FirebaseCoreInternal(Heartbeat.o) _$s20FirebaseCoreInternal16HeartbeatsBundleV10CodingKeys33_DA2CD673DFB14EB4EF31ED1E0C34DBC6LLOSQAAMc in FirebaseCoreInternal(HeartbeatsBundle.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadVSQAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV10CodingKeysOSQAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV09UserAgentE0VSQAAMc in FirebaseCoreInternal(HeartbeatsPayload.o) ... "_$sSS10describingSSx_tclufC", referenced from: _$s8Promises7PromiseC11descriptionSSvg in PromisesSwift(Promise.o) "_$sSS14_fromSubstringySSSshFZ", referenced from: _$s19FirebaseSharedSwift0A11DataDecoderC19KeyDecodingStrategyO21_convertFromSnakeCase33_6D166423BA39F764DCB8915CD73AA0F1LLyS2SFZTf4nd_n in FirebaseSharedSwift(FirebaseDataEncoder.o) "_$sSS18_uncheckedFromUTF8ySSSRys5UInt8VGFZ", referenced from: _$sSlsE10firstIndex5where0B0QzSgSb7ElementQzKXE_tKFSS_Tg5188$sSJSbs5Error_pIggdzo_SJSbsAA_pIegndzo_TR136$s19FirebaseSharedSwift0A11DataDecoderC19KeyDecodingStrategyO21_convertFromSnakeCase33_6D166423BA39F764DCB8915CD73AA0F1LLyS2SFZSbSJXEfU_Tf3npf_nTf1cn_n in FirebaseSharedSwift(FirebaseDataEncoder.o) _$s19FirebaseSharedSwift0A11DataDecoderC19KeyDecodingStrategyO21_convertFromSnakeCase33_6D166423BA39F764DCB8915CD73AA0F1LLyS2SFZTf4nd_n in FirebaseSharedSwift(FirebaseDataEncoder.o) "_$sSS4hash4intoys6HasherVz_tF", referenced from: _$ss17_NativeDictionaryV20_copyOrMoveAndResize8capacity12moveElementsySi_SbtFSS_20FirebaseCoreInternal13WeakContainerVyAF16HeartbeatStorageCGTg5 in FirebaseCoreInternal(HeartbeatsBundle.o) _$ss17_NativeDictionaryV20_copyOrMoveAndResize8capacity12moveElementsySi_SbtFSS_Say10Foundation4DateVGTg5 in FirebaseCoreInternal(HeartbeatsBundle.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV10CodingKeysOSHAASH9hashValueSivgTW in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV10CodingKeysOSHAASH4hash4intoys6HasherVz_tFTW in FirebaseCoreInternal(HeartbeatsPayload.o) _$s20FirebaseCoreInternal17HeartbeatsPayloadV10CodingKeysOSHAASH13_rawHashValue4seedS2i_tFTW in FirebaseCoreInternal(HeartbeatsPayload.o) _$ss22__RawDictionaryStorageC4findys10_HashTableV6BucketV6bucket_Sb5foundtxSHRzlFSS_Tg5 in FirebaseCoreInternal(HeartbeatStorage.o) _$ss17_NativeDictionaryV7_delete2atys10_HashTableV6BucketV_tFSS_20FirebaseCoreInternal13WeakContainerVyAI16HeartbeatStorageCGTg5 in FirebaseCoreInternal(HeartbeatStorage.o) ... "_$sSS5IndexV15characterStrideSiSgvg", referenced from: _$sSlsE10firstIndex5where0B0QzSgSb7ElementQzKXE_tKFSS_Tg5188$sSJSbs5Error_pIggdzo_SJSbsAA_pIegndzo_TR136$s19FirebaseSharedSwift0A11DataDecoderC19KeyDecodingStrategyO21_convertFromSnakeCase33_6D166423BA39F764DCB8915CD73AA0F1LLyS2SFZSbSJXEfU_Tf3npf_nTf1cn_n in FirebaseSharedSwift(FirebaseDataEncoder.o) _$s19FirebaseSharedSwift0A11DataDecoderC19KeyDecodingStrategyO21_convertFromSnakeCase33_6D166423BA39F764DCB8915CD73AA0F1LLyS2SFZTf4nd_n in FirebaseSharedSwift(FirebaseDataEncoder.o) "_$sSS5IndexVMn", referenced from: _symbolic _____ SS5IndexV in FirebaseSharedSwift(FirebaseDataEncoder.o) _symbolic Sny_____G SS5IndexV in FirebaseSharedSwift(FirebaseDataEncoder.o) _symbolic _____ySny_____GG s23_ContiguousArrayStorageC SS5IndexV in FirebaseSharedSwift(FirebaseDataEncoder.o) "_$sSS5countSivg", referenced from: _$s10Foundation4DataV20FirebaseCoreInternalE16base64URLEncoded7optionsACSgSS_So27NSDataBase64DecodingOptionsVtcfC in FirebaseCoreInternal(HeartbeatsPayload.o) "_$sSS5index5afterSS5IndexVAD_tF", referenced from: ```
marchbold commented 1 year ago

@ajwfrost Sorry for the delay in getting back to you on this one.

We have been able to confirm that an application running on iOS 12.5.5 built with AIR 50.2.3.5 was crashing with

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Description: DYLD, Symbol not found: _$s10Foundation10CocoaErrorV4CodeVAA01_cD8ProtocolAAMc

Updating with the adt.jar from the comment resolved the issue!

It is also working with this updated adt on more recent versions including iOS 16.6

However , still getting the issue with the simulator. I'm guessing we need an alternative path here for the swift libs, not sure if this is something we can add to the platform options?

ajwfrost commented 1 year ago

Hi @marchbold - just to confirm, when you tried the above that crashed with the 'symbol not found' issue, was that with the ANE that had the "-lswiftFoundation' option added in platform options file? I thought we'd found that the missing symbol was resolved with this, without needing the rearrangement of the linker order..

We'll take a look at the simulator here, it sounds like an extra change to ADT is needed.

marchbold commented 1 year ago

@ajwfrost So the -lswiftFoundation resolved it for recent versions of iOS however we have had lots of reports from users on older iOS versions (12-15 I believe) that were still encountering a related issue (i.e. a crash on launch with something like the above error).

However using the -lswiftFoundation flag and the adt.jar from above seems to have resolved that .

shaymolho commented 1 year ago

Hi @ajwfrost,

We also encountered the issue with the simulator (#2851),

@ajwfrost, Do you have an update for that?

ajwfrost commented 1 year ago

Hi - I just saw the fix for this one get submitted in our repository.. let me get a build kicked off and I'll post an interim update here later on today.

thanks

takazawa-gg commented 1 year ago

I am facing this very problem right now.

In our app we introduced Distriqt PushNotification ANE and now it crashes when launching the app on devices under iOS 15. It can be launched on iOS 16,17.

Is this symptom going to be fixed in a new AIR SDK release? If so, is it available at the same time as the workaround in #2772?

We apologize for the trouble, but we would appreciate your confirmation.

ajwfrost commented 1 year ago

Hi

So we're currently building an update of ADT that will include:

We'll release this formally at the end of the week all being well, but I'll post the jar file here too.

thanks

ajwfrost commented 1 year ago

Updated ADT.jar file is within the below zip... adt.zip

thanks

shaymolho commented 1 year ago

Hi @ajwfrost

cc @marchbold

Running the simulator build with the new adt.jar resulted with the following error:

Warning: The path to platform sdk should end with any one of the (iPhoneOSx.x | iPhoneSimulatorx.x | AppleTVSimulatorx.x | AppleTVOSx.x) format to avoid any unintended behavior.
Undefined symbols for architecture x86_64:
  "__swift_FORCE_LOAD_$_swiftCompatibility50", referenced from:
      __swift_FORCE_LOAD_$_swiftCompatibility50_$_FirebaseCoreInternal in FirebaseCoreInternal(_ObjC_HeartbeatController.o)
      __swift_FORCE_LOAD_$_swiftCompatibility50_$_FirebaseCoreInternal in FirebaseCoreInternal(_ObjC_HeartbeatsPayload.o)
      __swift_FORCE_LOAD_$_swiftCompatibility50_$_FirebaseCoreInternal in FirebaseCoreInternal(Heartbeat.o)
      __swift_FORCE_LOAD_$_swiftCompatibility50_$_FirebaseCoreInternal in FirebaseCoreInternal(HeartbeatController.o)
      __swift_FORCE_LOAD_$_swiftCompatibility50_$_FirebaseCoreInternal in FirebaseCoreInternal(HeartbeatsBundle.o)
      __swift_FORCE_LOAD_$_swiftCompatibility50_$_FirebaseCoreInternal in FirebaseCoreInternal(HeartbeatsPayload.o)
      __swift_FORCE_LOAD_$_swiftCompatibility50_$_FirebaseCoreInternal in FirebaseCoreInternal(HeartbeatStorage.o)
      ...
     (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibility50_$_FirebaseSessions, __swift_FORCE_LOAD_$_swiftCompatibility50_$_Promises , __swift_FORCE_LOAD_$_swiftCompatibility50_$_FirebaseSharedSwift , __swift_FORCE_LOAD_$_swiftCompatibility50_$_FirebaseCoreInternal )
  "__swift_FORCE_LOAD_$_swiftCompatibility51", referenced from:
      __swift_FORCE_LOAD_$_swiftCompatibility51_$_FirebaseCoreInternal in FirebaseCoreInternal(_ObjC_HeartbeatController.o)
      __swift_FORCE_LOAD_$_swiftCompatibility51_$_FirebaseCoreInternal in FirebaseCoreInternal(_ObjC_HeartbeatsPayload.o)
      __swift_FORCE_LOAD_$_swiftCompatibility51_$_FirebaseCoreInternal in FirebaseCoreInternal(Heartbeat.o)
      __swift_FORCE_LOAD_$_swiftCompatibility51_$_FirebaseCoreInternal in FirebaseCoreInternal(HeartbeatController.o)
      __swift_FORCE_LOAD_$_swiftCompatibility51_$_FirebaseCoreInternal in FirebaseCoreInternal(HeartbeatsBundle.o)
      __swift_FORCE_LOAD_$_swiftCompatibility51_$_FirebaseCoreInternal in FirebaseCoreInternal(HeartbeatsPayload.o)
      __swift_FORCE_LOAD_$_swiftCompatibility51_$_FirebaseCoreInternal in FirebaseCoreInternal(HeartbeatStorage.o)
      ...
     (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibility51_$_Promises, __swift_FORCE_LOAD_$_swiftCompatibility51_$_FirebaseSessions , __swift_FORCE_LOAD_$_swiftCompatibility51_$_FirebaseSharedSwift , __swift_FORCE_LOAD_$_swiftCompatibility51_$_FirebaseCoreInternal )
  "__swift_FORCE_LOAD_$_swiftCompatibilityConcurrency", referenced from:
      __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_FirebaseCoreInternal in FirebaseCoreInternal(_ObjC_HeartbeatController.o)
      __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_FirebaseCoreInternal in FirebaseCoreInternal(_ObjC_HeartbeatsPayload.o)
      __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_FirebaseCoreInternal in FirebaseCoreInternal(Heartbeat.o)
      __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_FirebaseCoreInternal in FirebaseCoreInternal(HeartbeatController.o)
      __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_FirebaseCoreInternal in FirebaseCoreInternal(HeartbeatsBundle.o)
      __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_FirebaseCoreInternal in FirebaseCoreInternal(HeartbeatsPayload.o)
      __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_FirebaseCoreInternal in FirebaseCoreInternal(HeartbeatStorage.o)
      ...
     (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_FirebaseSharedSwift, __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_Promises , __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_FirebaseSessions , __swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_FirebaseCoreInternal )
  "__swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements", referenced from:
      __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_FirebaseCoreInternal in FirebaseCoreInternal(_ObjC_HeartbeatController.o)
      __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_FirebaseCoreInternal in FirebaseCoreInternal(_ObjC_HeartbeatsPayload.o)
      __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_FirebaseCoreInternal in FirebaseCoreInternal(Heartbeat.o)
      __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_FirebaseCoreInternal in FirebaseCoreInternal(HeartbeatController.o)
      __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_FirebaseCoreInternal in FirebaseCoreInternal(HeartbeatsBundle.o)
      __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_FirebaseCoreInternal in FirebaseCoreInternal(HeartbeatsPayload.o)
      __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_FirebaseCoreInternal in FirebaseCoreInternal(HeartbeatStorage.o)
      ...
     (maybe you meant: __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_FirebaseSharedSwift, __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_Promises , __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_FirebaseCoreInternal , __swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements_$_FirebaseSessions )
ld: symbol(s) not found for architecture x86_64
marchbold commented 1 year ago

@shaymolho Beat me to it, I was just about to post that same thing.

@ajwfrost Here's the ld command line:

ld64 command line: /usr/bin/ld -pie -ObjC -dead_strip -Z -arch x86_64 -syslibroot "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk" -L/usr/lib -L/usr/lib/swift -F"/System/Library/Frameworks" -L"/Users/marchbold/work/sdks/air/AIRSDK_50.2.3/lib/aot/lib" -o "../aot3508174828252961816.tmp" -x "/Users/marchbold/work/sdks/air/AIRSDK_50.2.3/lib/aot/lib/libRuntimeInterpreter.x86-simulator-air.a" -lc++ -lSystem -U ___darwin_check_fd_set_overflow -lz -lobjc -lclang_rt.ios -lclang_rt.ios -ObjC -weak_framework UserNotifications -w "-F/var/folders/tb/mhsb9xwj7kgbbtsjrcm3f5w40000gn/T/95b64c0b-91c0-4924-b8d1-23732a266dc4" -framework "CoreNativeExtension" -rpath /usr/lib/swift -lswiftFoundation -lSwiftCompat -lsqlite3 -lz -framework SystemConfiguration -framework StoreKit -framework Security -framework CoreTelephony -framework CoreData -framework "FBLPromises" -framework "FirebaseCore" -framework "FirebaseCoreExtension" -framework "FirebaseCoreInternal" -framework "FirebaseInstallations" -framework "GoogleAppMeasurement" -framework "GoogleDataTransport" -framework "GoogleUtilities" -framework "nanopb" -framework "PromisesSwift" -framework "FirebaseSharedSwift" -framework "FirebaseAnalytics" -filelist "/Users/marchbold/work/distriqt/extensions/extensions/firebase/source/extensions/core/example/starling/bin-debug/AOTBuildOutput3962210148671325413.tmp/OBJFilesList.txt" -framework CoreFoundation -framework UIKit -framework MobileCoreServices -framework CoreGraphics -framework Foundation -framework AudioToolbox -framework CFNetwork -framework QuartzCore -framework OpenGLES -framework CoreLocation -framework CoreMedia -framework CoreVideo -framework AVFoundation -framework GameController -framework CoreMotion -framework AssetsLibrary -framework WebKit -platform_version ios-simulator 11.0 16.4 -exported_symbols_list "/Users/marchbold/work/distriqt/extensions/extensions/firebase/source/extensions/core/example/starling/bin-debug/AOTBuildOutput3962210148671325413.tmp/SYMFilesList.txt"

I can get it to run by copying the following files into AIRSDK/lib/aot/lib from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator

marchbold commented 1 year ago

(iOS 12-15 seems to be working with this one so same result there).

ajwfrost commented 1 year ago

Okay thanks - we'd better address that simulator swift linking issue..

(iOS 12-15 seems to be working with this one so same result there).

Just to check, does this mean the crash-on-startup reported under https://github.com/distriqt/ANE-Firebase/issues/462 looks like it's fixed with this update to ADT in conjunction with your latest ANE update?

thanks

marchbold commented 1 year ago

Yep, that one should be resolved with this update. Just the simulator issue now

ajwfrost commented 1 year ago

So currently there's the "libSwiftCompat.a" archive in the SDK 'lib' folder, and I'm assuming your ANE will be including the -lSwiftCompat additional command should it need this? But this didn't help in terms of the Simulator build, because that archive only had the arm64 files in it...

Below is a zip that contains an updated version of libSwiftCompat.a which is a fat/universal file with arm64 and x86_64 versions, if you unzip this into the SDK lib/aot/lib folder, and try again, I would hope this time it works..!

thanks swiftCompat.zip

marchbold commented 1 year ago

Bingo! Looks good with that addition :)

(Yep our ANEs that rely on this have the -lSwiftCompat option, should see it in the command line I posted above)

shaymolho commented 1 year ago

Hey @ajwfrost,

Maybe it's a different issue i don't understand , but now running the simulator build failed on the following error: Failure in codesign request The same build not for simulator succeed

(By The way, where can i find the adt.log file? can't find it in the user home dir)

Thanks

ajwfrost commented 1 year ago

Curious one .. the adt.log file should be under /Users/username/adt.log but only if you've configured this to appear, by adding a line "DebugOut=true" to a file /Users/username/.airsdk/adt.cfg. Or the simpler option: use the AIR SDK Manager (where you can tick a box to set up the logging, or you can just go to the "Troubleshooting" pane and ADT will magically log to this area...

thanks

raresn commented 1 year ago

@marchbold Our issue on #2860 is the same as @takazawa-gg described! (Can't run on ios < 16) Problem is that we have it live on AppStore. You can change AppStore to Romania, and download https://apps.apple.com/ro/app/ontimeagenda/id1327348934

shaymolho commented 1 year ago

Hi @ajwfrost ,

As I wrote now the simulator build fails on this error: Failure in codesign request

I'm attching the adt.log from this build: adt.log

The same build with 'ipa-debug' target works.

I don't know how to proceed from here, Your help is much needed.

Thanks