Since I upgraded to xcode 6 my project do not compile anymore, I cleaned several time, restarted, deleted the derived data but it didn't help
So I went back to xcode 5 and I also have errors now on xcode 5
My project is a working project from the repository and it's working on my colleague's mac...
I didn't change anything so I don't understand and will aprreciate any help
the errors
error: unable to open executable '/Users/mobiledev/Library/Developer/Xcode/DerivedData/MyApp-bqkgvjwrncaywqgcyydyxfwxsvio/Build/Products/Debug-iphonesimulator/MyApp.app/MyApp'
ld: framework not found AVKit for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Had the same trouble, I've just set the target membership in File Inspector of my framework.
Find AVKit framework in your project and try my method, may be it will help.
Related
I dont wanna duplikate any question but honestly i tried a tons of solution but any of them worked for me.
I have to update old application from 2013 written in ObjC (Xcode 3.* i think) but i cant even build version that should be able to build. I have xcode 8.3 should i download older one ?
Apple Mach-O Linker Error Group
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: library not found for -lcrypto
I will appreciate everything.
I recently updated my OSX to El Capitan and, because of an issue with my previous version of Unity (v 5.0.1 I believe), I was forced to update to the latest version (5.2.1f1). Now, when I build for iOS, I get the following error during the linking process:
ld: framework not found FBSDKCoreKit for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am using the Soomla library for in-app purchases and social integration, as well as Parse for the online database. I believe at least one of these libraries could be responsible for this, since they both contain Facebook-related code. In any case, I can't figure out what I need to try next. Both plugins have been updated to their latest versions.
I attempted building with the Mono2x scripting backend first, as usual. Then, I tried changing it to IL2CPP and tried compiling for armv7, arm64, and the Universal architecture options. Nothing worked.
I also tried manually adding the FBSDKCoreKit framework file downloaded from https://developers.facebook.com/docs/ios. This also didn't work, except this time I got a slightly different error:
ld: framework not found FBSDKCoreKit clang: error: linker command
failed with exit code 1 (use -v to see invocation)
I'm not sure why it would say this when I explicitly add the framework into the Xcode project. Could anyone give me any insight?
So my iOS project was working fine, then all of a sudden I am getting the following error when I try to run in simulator:
ld: framework not found AVKit for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
And when I try to archive I get this error:
ld: framework not found AVKit for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
From what I can tell, AVKit is an OSX framework and not an iOS framework.
So why is my project suddenly confused and wanting an OSX framework, and do I convince it that it does not need it?
Well apparently AVKit is available in the iOS 8 SDK so I need to upgrade Xcode to version 6 in order to add it.
See this question: Need help: 'Wrong Architecture' causing app to crash when launching in iOS 7 but works fine in iOS 8
And it should be set as an Optional framework if you want to support iOS 7 and below as well.
I upgraded to xcode 5 recently. When I try to run my app that is already working with xcode 4.6, i get this error:
ld: building for iOS Simulator, but linking against dylib built for MacOSX file '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/InterfaceBuilderKit.framework/InterfaceBuilderKit' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Anyone know of a way to fix this?
This issue cause from your target setting that has been added automatically in Xcode 5.0
Try these
in your project target look for "Search Paths"->"Framework Search Paths" make sure the value for the field is empty.
in your project target look for "Linking"->"Other linker Flags" make sure the value is empty.
Hope it help
I'm now using Xcode 4.6 but cannot build my app on a device but perfectly working on simulator. It is looking my lbxml2, I already followed the solutions given by other users like adding "${SDK_DIR}/usr/include/libxml2" to Header Search Paths under Build Setting, include in Link Binary With Libraries under Build Phases but still no luck.
Before I switched to Xcode 4.6, it was building on Xcode 4.5. So, I really don't know what is wrong.
Thanks!
EDIT:
I am getting this error:
ld: library not found for -lxml2
clang-real++: error: linker command failed with exit code 1 (use -v to see invocation)
Command /Applications/Xcode 4.6/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ failed with exit code 1
How are you trying to link your library in?
A "-lxml2" line in your build settings?
When I add my dylibs to my project, I usually do it the way you see in my screenshot.
Try this and see if it works for you also: