Undefined Symbol on build react native app
Error while building React native app on xcode 14
i'm usnig XCode 14 and it give bunch of error of undefined symbol
if i run it in My Mac(Designed for iphone) then it work fine and i run it for any simulator then it give these error i try it for ios 11 and ios 16 but didn't work
Related
App after upgrade NativeScript to v7 and Angular to v10, works perfect when building in debug mode - on emulator and on real iOS device. But when pushing app to TestFlight it is Crashing just after run. So I tried to run on emulator in release mode:
tns run ios --release --clean --emulator
And just after searching for devices I see an error:
Cannot destructure property 'version' of 'this.$projectDataService.getRuntimePackage(...)' as it is undefined.
tns run ios (without release parameter) works, app builded and working well on emulator.
I am trying to test my apps for iOS 12. I have a iPad only app that works fine under Xcode 9. When I try to compile it for the simulator with Xcode 10 GM, the following warning appears:
URGENT: building for iOS Simulator simulator, but linking against dylib (/usr/lib/libstdc++.6.0.9.dylib) built for macOS. Note: This will be an error in the future
It will build, but when running it crashes with the following message:
dyld: lazy symbol binding failed: can't resolve symbol ___cxa_guard_acquire in /Users/.... /.... xxx.app because dependent dylib #1 could not be loaded.
I haven't done anything, it happened on the first try.
Any ideas?
removed '/usr/lib/libstdc++.6.0.9.dylib' from the 'OTHER_LDFLAGS', seems to be fine again.
libstc is removed in iOS 12 and was first deprecated in Xcode 10. You can however manually add this library in Simulator or update your dependency to use libc++.
Refer this link for manually adding these libraries - libstdc
I'm trying to Archive an react native IOS app via Xcode but it fails with the error. The app builds ok and runs on real device and also on simulator normal only the archive fails. The error is the following:
duplicate symbol _OBJC_METACLASS_$_RCTWebSocketModule in:
/Users/simoncigoj/Library/Developer/Xcode/DerivedData/GoOptiDriverProject-fdekgxtfuwblpfbtjzxjseykeddi/Build/Intermediates.noindex/ArchiveIntermediates/GoOptiDriverProject/BuildProductsPath/Release-iphoneos/libReact.a(RCTWebSocketModule.o)
/Users/simoncigoj/Library/Developer/Xcode/DerivedData/GoOptiDriverProject-fdekgxtfuwblpfbtjzxjseykeddi/Build/Intermediates.noindex/ArchiveIntermediates/GoOptiDriverProject/BuildProductsPath/Release-iphoneos/libRCTWebSocket.a(RCTWebSocketModule.o)
ld: 168 duplicate symbols for architecture arm64
I've upgraded to react-native 0.16-rc, and tried to run my program on iOS (it worked great on 0.13.2). In simulator all goes great, but when I try to run it on my old iPhone (iOS 7.1 but before it ran great on it) I get error:
dyld: Symbol not found: _AVMetadataObjectTypeDataMatrixCode
Referenced from: /var/mobile/Applications/482E10D8-4B8B-4E1A-8AF8-78AC61C0C398/appname.app/appname
Expected in: /System/Library/Frameworks/AVFoundation.framework/AVFoundation
in /var/mobile/Applications/482E10D8-4B8B-4E1A-8AF8-78AC61C0C398/appname.app/appname
Can anybody help with it? I use external react-native-camera module which wasn't updated in while. Also didn't have time to upgraded to newest xCode (my ver. 7.0.1). Anybody had that kind of problems?
Is unity5's IL2CPP support IOS simulator build now? I managed to build a unity exported project in xcode but when it run in simulator mode it crashed with the message dyld: Symbol not found: _CloseZStream.