I'm fairly new to Xcode and have no idea why my build failed. The following is a part of the output, the parts that I omitted are just warnings about deprecations.
ld: building for iOS Simulator, but linking in object file built for iOS, file '/Users/user/Documents/GitHub/bus/ios/Pods/GoogleMaps/Maps/Frameworks/GoogleMapsCore.framework/GoogleMapsCore' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
Could not build the application for the simulator.
Error launching application on iPhone 13.
Exited (sigterm)
What can I do to fix this issue? I have no issues building my app in android.
It works against an iOS 14.4 simulator and Google Maps appear on the app correctly.(M1 machine)
Related
I have made react-native integrated with my existing app. But it can only run on iOS 8.0 or later. As many programmers said, react-native can run on iOS 7.0, but I didn't make it work. And there are the compiling error messages from xcode:
ld: embedded dylibs/frameworks are only supported on iOS 8.0 and later (#rpath/React.framework/React) for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Anyone can tell me how could I solve this problem to make react-native to run on iOS 7.0?
I have a sample swift video chat app that I build with the help from ooVoo framework. The app builds and runs as expected when I simply run it from Xcode on my iPhone 5s phone. When I switch the device to 'Generic iOS Device' and run 'Product'->'Archive' to get the app ready for test, flight I get a linker error.
ld: bitcode bundle could not be generated because
'/Users/Shared/ooVooSDK/lib/ooVooSDK.framework/ooVooSDK(SdkResult.o)'
was built without full bitcode. All object files and libraries for
bitcode must be generated from Xcode Archive or Install build for
architecture armv7 clang: error: linker command failed with exit code
1 (use -v to see invocation)
What am I missing? We have the ooVoo framework version 2.2.0.72.
You have to disable bitcode for your app if all the frameworks aren't built with bitcode support.
I have searched http://sourceforge.net/projects/xlslib/files here and download the library. I added the library into my xcode project like this
My xcode version is 6.4 and my project iOS Deployment Target is 8.0.
After I added it into the project without typing any code, I just built to see if it works.
But I failed and get these information:
ld: building for iOS Simulator, but linking against dylib built for MacOSX file '(MyProject Directory)/xlslib/libxls.3.dylib' for architecture x86_64
clang: error:
linker command failed with exit code 1 (use -v to see invocation)
When I changed iOS Deployment Target to 7.0, build the project by using iOS simulator with iOS version 7.1, it works. Is the library doesn't support iOS 8.0 and later ?
BTW, other link flag is already be empty, what should I do to solve this problem?
Any help would be appreciated.
Iam able to run my project in iPad and iphone but when i tried to run it in iPad simulators
but then i got this error .
ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Users/apple/Documents/releaseAPICON2015/SenTestingKit.framework/SenTestingKit' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
please check this link for screenshot
Error
Please tell me how to get back all simulators in xcode 6.1.1
You are trying to link SenTestingKit.framework in you iOS project. You cannot use OS X binaries in iOS Simulator apps as they are not compatible.
On older versions of iOS, you would encounter runtime errors (incorrect values or crashes). On iOS 8.0, this became a link-time error.
You need to build a version of SenTestingKit.framework for iOS. Hope this helps.. :)
I am not unable to build and run the demo projects for iOS which are included in the SDL download. I am getting the error below and don't know how to resolve this issue. On my simulator, the project is compiling but the sample projects are not running on my iPhone. I am using iOS 7 beta 3 on both of them (simulator & iphone).
The following build error occurs:
ld: entry point (_main) undefined. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
In addition, the sample program includes a main function, so shouldn't it work normally?