I have Unity 5.0.2p1 Personal and Xcode Version 6.3.1 (6D1002).
Here are some steps for anyone hoping to reproduce the problem:
A new blank Unity project
IOS Player Settings > SDK Version : Simulator SDK
Build and Run produces this when app is launched in simulator:
Warning: Error creating LLDB target at path '/Users/...(user
name).../Library/Developer/Xcode/DerivedData/Unity-iPhone-couukthirzleocbdfmbmdpjhxrtr/Build/Products/Debug-iphonesimulator/ProductName.app'-
using an empty LLDB target which can cause slow memory reads from
remote devices.
dyld: Symbol not found: __ZN5metal16g_CurrentEncoderE
Referenced from: /Users/...(user name).../Library/Developer/CoreSimulator/Devices/530A44CB-5978-4926-9E91-E9DBD5BFB105/data/Containers/Bundle/Application/07612A5C-659D-4C04-ACD3-D211D2830E17/ProductName.app/ProductName
Expected in: flat namespace
in /Users/...(user name).../Library/Developer/CoreSimulator/Devices/530A44CB-5978-4926-9E91-E9DBD5BFB105/data/Containers/Bundle/Application/07612A5C-659D-4C04-ACD3-D211D2830E17/ProductName.app/ProductName
Then, if you select Standard Architecture in Xcode Build Settings and build and run again it produces this:
dyld: lazy symbol binding failed: Symbol not found: _UnityRegisterProInterface
Referenced from: /Users/...(user name).../Library/Developer/CoreSimulator/Devices/530A44CB-5978-4926-9E91-E9DBD5BFB105/data/Containers/Bundle/Application/444E88D1-3B5D-46FA-A143-B8634F56398E/ProductName.app/ProductName
Expected in: flat namespace
dyld: Symbol not found: _UnityRegisterProInterface
Referenced from: /Users/...(user name).../Library/Developer/CoreSimulator/Devices/530A44CB-5978-4926-9E91-E9DBD5BFB105/data/Containers/Bundle/Application/444E88D1-3B5D-46FA-A143-B8634F56398E/ProductName.app/ProductName
Expected in: flat namespace
(lldb)
The same results occur for various settings in Unity iOS Player Settings:
Scripting Backend: Mono (2.0) / IL2CPP
Architecture: ARMv7 / ARM64 / Universal
Target iOS version: 6.0 / 8.1
Graphics API: Automatic / Open GL ES 2.0 / Open GL ES 3.0 / Metal
Also get the same results using Xcode Build Settings:
Base SDK: iphonesimulator (SDK not found) / Standard architectures (armv7, arm64) - $(ARCHS_STANDARD)
Supported Platforms: iphonesimulator / iOS
iOS Deployment Target: iOS 6.0 / iOS 8.1 / iOS 8.3
Any hints are very appreciated.
This is solved in Patch Release 5.1.0p1 : https://unity3d.com/unity/qa/patch-releases
Check out the Release Notes : (696798) - iOS: Fixed simulator crashing on startup due to "Symbol not found: __ZN5metal16g_CurrentEncoderE".
Related
Trying for several days to build my flutter project in iOs (flutter build IPA) and I always seem to receive the same errors :
"_objc_msgSend$setIOSHasWarnedLocationServicesOff:", referenced from:
+[LocationAuthorization run:onCancel:] in TSLocationManager(LocationAuthorization.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
There are a lot of them so I won't be putting all of them here but they're all related to _objc_msgSend$ and TSLocationManager.
I tried to add "-lc++" to Other Linker Flags in Build Settings (Runner Target)., related to this issue https://github.com/facebookarchive/pop/issues/25 but it still failing with more than 100 _objc_msgSend$ issues. I have frankly tried so many things and I'm quite out of clues.
Something I remarked is that when I build from Xcode (Product -» Build), it builds fine when I choose the Destination Device iPhone SE 3rd GEN, but I get the errors when the destination device into my physical device (which is plugged into my Mac).
When I hit flutter build IPA, it always fails.
^_^
First you can update your xcode to version14.0 above.
And the real reason is Apple Clang new optimization scheme._objc_msgSend stup support is not support on xcode13.
If you don't want upgrade your xcode version . You can follow next steps to change your private framework.
I guess you compiled a framework in xcode14 and then used it in xcode13
hh , now i saw you reply , make sure my answer
i'm using Xcode 13.4.1 and it's not having ARCHS_VALID as a build setting #editix –
Bertrand Gélinas
22 hours ago
By default, the clang in Xcode 14 will generate target files that cannot be understood by earlier native linkers.
In the future, it will be recommended to use Xcode14 and above for application package.
If you have private framework build by Xcode14.
Just add -fno-objc-msgsend-selector-stubs to your framework project target build settings other c flags, and build again, replace new framework to your other xcode project
or in your framework project chaneg your podspec file add xcconfig other c flags -fno-objc-msgsend-selector-stubs
or your own script build framework , you can before call xcodebuild command add a change , like thisxcodebuild -project xxx.xcodeproj build OTHER_CFLAGS="-fno-objc-msgsend-selector-stubs "
click on your target > build settings > VALID_ARCHS > and add the following :
arm64 arm64e armv7 armv7s x86_64
in case you didn't find the VALID_ARCHS do the following:
1- Click on the plus sign under the Build Settings.
2- Choose "Add user-defined settings" and it will add NEW_SETTING to you.
3- Rename the "NEW_SETTING" to "VALID_ARCHS" and add the following builds:
arm64 arm64e armv7 armv7s x86_64
if nothing fixed your issue please follow this you may find working answer:
Undefined symbols for architecture arm64
Just installed Xcode 10, and got tis run time error. Do you have any idea what is wrong?
dyld: Library not loaded: /usr/lib/libstdc++.6.dylib
Referenced from: /Users/kukodajanos/Library/Developer/CoreSimulator/Devices/50603E30-571E-484B-BABD-270D3D1F01AE/data/Containers/Bundle/Application/AFA530AF-2F31-4B26-ACE0-776070E28368/PFB.app/Frameworks/FoxitRDK.framework/FoxitRDK
Reason: no suitable image found. Did find:
/usr/lib/libstdc++.6.dylib: mach-o, but not built for iOS simulator
(lldb)
Previous Xcode app worked in simulator.
lipo -info /Users/kukodajanos/Workspace/PFB/FoxitRDK.framework/FoxitRDK
Architectures in the fat file: /Users/kukodajanos/Workspace/PFB/FoxitRDK.framework/FoxitRDK are: i386 x86_64 armv7 arm64
As you see Foxit lipo shows it has also the i386 x86_64 architecture as well. So it should work on simulator.
Does this article mean we need to update Foxit to 5.0.0.1107?
This is a bug of Foxit PDF SDK V6.0 on iOS 12 and Foxit already fixed in V6.1. Please double check the version you are useing.
The background of this issue is that: Xcode 10 has removed "libstdc++.6.dylib",
a temporary solution base on V6.0 is to copy libstdc++.6.dylib from Xcode 9.x to Xcode10.
For Foxit PDF SDK V6.1 the SDK itself isn't reference libstdc++.6.dylib and reference libc++ instead (which is Apple recommend)
I'm using Delphi 10.2 Update 3, with an iOS target of 11.3 and an iPad running iOS 10.3.3.
When I try to compile my project for a iOS device, this error occurs:
[DCC Error] E2597 ld: warning: directory not found for option '-FC:\Users\gustavo.reinert\Documents\Embarcadero\Studio\SDKs\iPhoneOS11.3.sdk\System\Library\PrivateFrameworks'
ld: warning: directory not found for option '-LC:\Users\Marcio.Amorim\Documents\Embarcadero\Studio\SDKs\MacOSX10.13.sdk\usr\lib\system'
ld: file not found: /usr/lib/system/libcache.dylib for architecture arm64
What can I do to fix this?
This is a Delphi bug when compiling against iOS 11.3 SDK.
RSP-20303: XCode 9.3 and iOS 11.3 linker error
You can use iOS 11.2 SDK instead.
I'm developing an Hybrid Application with IBM MobileFirst Platform Fondation 8.0, Ionic2 and Cordova.
On iOS I found a problem at compilation time, the same problem happens also using the default mobile first ionic template and so I cannot to upload software on emulator.
This is my configuration:
Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-beta.11
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.0.0-beta.20
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X Yosemite
Node Version: v4.4.3
Xcode version: Xcode 6.4 Build version 6E35b
At compile time I obtain the follow link error:
1] Undefined symbols for architecture x86_64:
std::terminate()", referenced from:
___clang_call_terminate in IBMMobileFirstPlatformFoundationHybrid(ZipArchive.o)
___cxa_begin_catch", referenced from:
___clang_call_terminate in IBMMobileFirstPlatformFoundationHybrid(ZipArchive.o)
___gxx_personality_v0", referenced from:
[...]
On internet I found an advice to add in Xcode linker option: -lc++
2] Undefined symbols for architecture x86_64:
_crc32", referenced from:
-[ZipArchive addFileToZip:newname:] in IBMMobileFirstPlatformFoundationHybrid(ZipArchive.o)
_deflate", referenced from:
_zipWriteInFileInZip in IBMMobileFirstPlatformFoundationHybrid(zip.o)
[...]
On internet I found an advice to add in Xcode linker option: -lc++
Resolved adding -lz into linker options.
3] duplicate symbol _llvm.cmdline in:
Torna a Casa/Plugins/cordova-plugin-mfp/IBMMobileFirstPlatformFoundationJSONStore.framework/IBMMobileFirstPlatformFoundationJSONStore(JSONStoreValidator.o)
Torna a Casa/Plugins/cordova-plugin-mfp/IBMMobileFirstPlatformFoundationJSONStore.framework/IBMMobileFirstPlatformFoundationJSONStore(JSONStoreIndexer.o)
It can be resolved removing -ObjC but removing it Application crash with the follow error:
[__NSDictionaryM cordovaSettingForKey:]: unrecognized selector sent to instance 0x7f814d2081a0
Somewhere I found a suggest to add ENABLE_BITCODE = NO but it is already.
Thanks.
Daniele
You need not do any of those workarounds.
Upgrade your Xcode to v7.0 at the very least.
Then make sure you follow these basic steps to use MobileFirst in Ionic apps: https://mobilefirstplatform.ibmcloud.com/blog/2016/07/19/integrating-mobilefirst-foundation-8-in-ionic-based-apps/
i am using xcode 6 . application runs successfully on simulator but when i am using my device than after building the application it is crashed and sending this report. this code was running with xcode 5.
dyld: Symbol not found: _NSURLAuthenticationMethodServerTrust
Referenced from: /var/mobile/Applications/7BA2B5A2-E764-46F6-A012-8FB94BCD1C4C/FutureAPI.app/FutureAPI
Expected in: /System/Library/Frameworks/CFNetwork.framework/CFNetwork
in /var/mobile/Applications/7BA2B5A2-E764-46F6-A012-8FB94BCD1C4C/FutureAPI.app/FutureAPI
answer is https://github.com/AFNetworking/AFNetworking/issues/2109. i have just deleted CFNetwork.framework and my code is running.