XCode 7.0.1, link failing during Archive even with BitCode = NO for AWS - amazon-web-services

I know there are a couple of other questions about this out there, but they are not solving this problem.
Pre XCODE 7.x project, upgraded to XCODE 7.0.1
Getting the following error when linking
ld: '[deleted]/ThridParty/AmazonMobileAnalytics/AWSCore.framework/AWSCore(AWSCredentialsProvider.o)' does not contain bitcode.
You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE),
obtain an updated library from the vendor, or disable bitcode for this target. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Even with build settings Enable Bitcode set to NO.
This is happening during ARCHIVE, but works fine for sim builds.

Related

XCode ld: library not found for -lrealsense2.2.50.0 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Iam quite new to this community. Take me as a noob in software development ( Help would be appreciated )
Iam running intel based 16 inch mac. with MacOs Monterey 12.4 version and Xcode Version 13.4.1 (13F100)
Facing a problem with Xcode for C++ development, i will attach the screen shot with this. when building it shows that library not found for ld: library not found for -lrealsense2.2.50.0 clang: error: linker command failed with exit code 1 (use -v to see invocation) it was showing the same with the libfreenect2 driver as well.
Things i tried
I tried changing the name of the driver according to the name asked and added it even though it did not work.
Tried deleting the files from the derived directories and restarting everything
Creating a new project.
Building my own binary files using the SDK from link.
and lot other stuff on google, it didnt work. but when i run a cmake build with the given examples it works amazingly fine. but not when i wanted to develope my own project using the same code.
PLEASE DIRECT ME MAY BE A COURSE TOWARDS LEARNING XCODE.. anything.
This is the code iam running
And this is the error am getting

ld: library not found for -lnfshared in iOS 9.0

I opened a project with new Xcode (Version 7.0) and there was some errors connected with CoreText.framework and lnfshared.dylib. All libraries with *.dylib I've changed to *.tbd. Now there is only one error in compilation:
ld: library not found for -lnfshared
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Has anybody encountered such a problem?
I had a similar problem and I solved searching the files in a different path.
Look a this link
Missing files libresolv.9.dylib and libxml2.dylib
The problem was in build setting. Deployment target was from 6.0. I've change it to 7.0 and the error disappeared

Xcode LLVM 5.0 Error -Wunused-command-line-argument-hard-error-in-future

I am getting the following error in Xcode 5.1: clang: error: unknown argument: '-fstack-check' [-Wunused-command-line-argument-hard-error-in-future]
My operating system is OSx Mavericks 10.9.
Any help would be greatly appreciated since this would allow my brother to complete the work for Stanford CS106b. I am aware that this question has been asked before on SO, but I have been unsuccessful after four hours of trying suggestions including:
Adding -fstack-check to the compiler flags under Compile Sources.
Typing export ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future" in Terminal
Adding 'ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future' to ~/.bash_profile
Editing Scheme in Xcode, setting ARCHFLAGS to -Wunused-command-line-argument-hard-error-in-future
Adding a .plist file with ARCHFLAGS set to -Wno-error=unused-command-line-argument-hard-error-in-future
All of these attempts have resulted in the same error popping up when I click build. Here is the full error:
clang: error: unknown argument: '-fstack-check' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
clang: error: unknown argument: '-fstack-check' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
Command
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
I will REALLY appreciate a solution since this has been consuming hours of my time, and it will give my brother a productive coding environment. Thanks!!
My guess is that 'fstack-check' isn't compatible with LLVM 5.0. I've tried compiling the C++ projects on XCode 5, XCode 6 beta on both Mavericks and Yosemite to no avail.
Finally I just installed XCode 4.6.3 it compiled without errors with LLVM 4. Just download it from here and it should work fine. Hopefully Stanford does release some updates to their existing libraries so it'll be compatible with the later versions of LLVM.

Xcode 5 project runs on simulator 3.5 but gives linker error on device

When ever i am running the code on the simulator it work fine but on device it give me following error.
ld: library not found for -lz
clang: error: linker command failed with exit code 1 (use -v to see invocation)
i have added paypal sdk in the project , without that sdk it works on device. please suggest
try to add libz.dylib in your Target lib phase
It seems that you forget to select 'destination' while copying the sdk into your project, so delete sdk and add it again in your project and remember to select 'destination'

Xcode build problems

I'm getting these feedbacks for two errors I keep getting when I try to "build" (which fails):
(this project built & ran fine before I upgraded my IOS device to 5.1 -- I can't even use the simulator either)
1st error:
"_OBJC_CLASS_$_CLLocationManager", referenced from:
objc-class-ref in BTInclinometerViewController.o
ld: symbol(s) not found for architecture i386
2nd error:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
What I don't understand is:
-- What does Xcode mean by the term "symbol";
-- How do I go about Identifying and then satisfying the missing symbol;
-- How do I "(use -v to see invocation)"
I'm using a MAC OSX 10.7.3 and Xcode version 4.3.2
Any help would be greatly appreciated on this.
Make sure you include the Core Location framework in your project. Go to you Project, Build Phases, Link Binary with Library. Then add the framework.
If you have, make sure you include the right headers in your class.