I am getting error while i am compiling my project.
"building for iOS Simulator, but linking against dylib built for
MacOSX file '/Applications/Xcode
3.app/Contents/Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit'
for architecture x86_64"
I have search this problem but couldnot get solution and i am stucked in this problem since 3-4 days.
Thanks
Related
Never had a lot of problems until the time to buy Macbook Air M1. Just yesterday my app was build without any error in Xcode 12.4. I did not make any special changes and today build failed:
/Users/userName/Projects/MyApp/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a(cryptlib.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/userName/Projects/MyApp/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a' for architecture arm64clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please can you help me, how to solve it?
Looks like a missing Arm64 simulator slice in the OpenSSL-Universal CocoaPods distribution.
Make sure that you're using the latest version with pod update and contact the OpenSSL-Universal if there's still an issue.
When attempting to build an iPad app for Mac using Catalyst, I get the following error:
FirebaseAnalytics.framework/FirebaseAnalytics(...o),
building for UIKitForMac, but linking in object file built for iOS Simulator,
file '/../FirebaseAnalytics.framework/FirebaseAnalytics' for architecture x86_64
Is this something Google has to fix? The version is FirebaseAnalytics 6.0.1
The Firebase libraries are not yet ported to UIKitForMac / Catalina, so it's best to conditionally compile out the usages like so:
#if !targetEnvironment(UIKitForMac)
...firebase code...
#endif
I have started receiving following error suddenly on TestTarget, not sure what has changed
Showing All Issues
ld: -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
I have turned off bitcode already on app build target.
App is building fine and running , this error appears only for testing .
I am using mailcore2 in my ios app from fetching my gmail account emails on my device. I have changed the ios sdkversion from 6.1 to 6.0 in the mailcore2 scripts bcz I am trying to compile and run the app using iPhone simulator 6.0 which uses ios sdkversion 6.0. Doing so I am getting the following clang error.
clang: error: no such file or directory: '/Users/shujaat/Library/Developer/Xcode/DerivedData/MyTestApp-ditognlaoajwldfliplqecnxqbfj/Build/Products/Debug-iphonesimulator/MailCore/MailCore'
While trying to compile and run my app using iphone simulator 6.1 (uses ios sdk 6.1), with no changes in the ios sdk version in the shell scripts, I am getting the following error:
/bin/sh /Users/shujaat/Documents/WemoTech/Products/WantList/sourcecode/ThirdPartyLib/MailCore2/Externals/builds/workdir/20130930192723/src/libetpan/build-mac/update.sh
configuring
running prepare-cyrus-sasl.sh
prepare sources
patching file lib/client.c
building tools
generated makemd5i386 properly
building for iPhoneOS - armv7
CONFIGURE FAILED
Command /bin/sh failed with exit code 1
These issues are driving me crazy for the last couple of days. Need your help.
Go to your main project target->"Build phases"->"Target dependencies" add mailcore2 ios
You need to read Check Adding MailCore to Your iOS Project carefully.
These issues are fixed now. I want to explain what I did to get rid of them for others facing same issues:
I made a separate project, and made mailcore2 as a part of it (didn't include the #import line in any of the project files at first). I compiled and run the project and copied the resultant mailcore 2 from it to my original project. It's compiling and running fine now.
I've build my project on xcode 4.2.
I selected iPhone 4.3 simulator and build the project.
Then the error occured.
dyld: Library not loaded: /usr/lib/libc++abi.dylib
Referenced from: /Users/Player/Library/Application Support/iPhone Simulator/4.3.2/Applications/CF49143F-07C9-4609-AADB-82DD3AEAF6D9/Mahjang.app/Mahjang
Reason: image not found
How can I solve this problem?
Need your help.
I ran into this too: installed XCode 4.2 on Snow Leopard, and ran my app on the simulator. 5.0 simulator works, but forces it into Portrait mode (separate issue). The immediate problem was all the 4.x simulators that worked fine under XCode 4.1 would boot the app to the Default.png splash screen, and then just crash, with the disassembly showing:
int 3
nop
And the stack trace showing __dyld_dyld_fatal_error. Looking in gdb showed the most useful information posted in the question above.
Copying that llvm link to libc++abi.dylib into /usr/lib works, but there is a safer solution:
Answer: Add -Wl,-no_implicit_dylibs to "Other Linker Flags" in your build settings.
This is what I found out. Download zip from the below URL.
http://howardhinnant.github.io/libcppabi.zip
cp cxxabi.h to /usr/include, and cp libc++abi.dylib to /usr/lib. Now your simulator should work.
The URL seems a little funky to me, being a very non-offical location. But I got it from http://libcxx.llvm.org/ so I'm going to say it is trustworthy. Don't know what the story is here with why this is necessary.