linker command failed with exit code 1 (user -v to see invocation) - ios

I got an error:
Framework not found FacebookSDK
clang: error: linker command failed with exit code 1 (user -v to see invocation)
When I copy my project to another macbook to run,I found this error.I used the facebooksdk framework.If I deleted the facebook framework in my project and then add the facebook framework again to my project can solved this error.But I don't want to solve this problem like that.Any other better idea.
Thanks in advanced.

You should check Framework Search Path in target Build Settings, best way is write framework directory path with macro like $(SOURCE_ROOT) is allow linker find framework on different macs.
For example:
if my project live in this folder
/Users/sage/Documents/devs/project1/
$(SOURCE_ROOT) will be /Users/sage/Documents/devs/project1
in Framework Searh Path I should write $(SOURCE_ROOT)/libs

Related

Framework is not found. Linker command failed with exit code -1

I want to add Appsflyer framework in my project. Added by two ways
Downloaded the framework and imported it to project. Added in Linked Frameworks and Libraries. When i Compile it shows the error of "ld: framework not found AppsFlyer. Linker Command failed with exit code -1".
Tried with Cocoa pods. Created podfile and installed Appsflyer framework.
Here also i get the same error."ld: framework not found AppsFlyer. Linker Command failed with exit code -1".
Tried with all options from stackoverflow. By using Header search paths, Library search paths and framework search paths.Enabling Bitcode, Build Active Architecture only etc. Even though i get the same result.
Iam using Xcode 6.3 and tried with xcode 7.3 also.
Suggest me how to resolve the problem? Thanks in advance.

"Linker command failed with exit code 1" message when building project after adding RMQClient framework to XCODe 7.3 Project

I am trying to add RMQClient framework to my XCODE 7.3 project.
I am following the steps as specified in https://github.com/rabbitmq/rabbitmq-objc-client as well as in the RabbitMQ official site.
After adding the framework and running Tools->Build I am receiving
ld: framework not found RMQClient
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error messages and can't import any of the header files from the framework.
Any suggestions for this issue?
Copying the framework package to the Project tree on Xcode solved the problem.
remember to make sure the framework is also linked and files are copied in the Build Phases section

Framework not found xcode 7

I built a framework and when trying to use it in another project gives me this error:
ld: framework not found PSD
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm using Xcode 7 and the .framework file is inside the project folder. I already tried changing non-recursive to recursive in paths and adding the path manually, but it's not working.
Ok, I found the solution, I wasn't building the Framework as Target

Library not found -lAdIdAccess ios

Today when i have started compiling the code i am getting the folloing error
I have tried the other option like, setting the liker flag, framework search path,
ld: library not found for -lAdIdAccess
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I was able to solve the same problem with the following code.
Add this to the Library Search Paths in Build Settings and make sure you select recursive, delete other library paths which might be absolute paths.
$(PROJECT_DIR)
May be it will help you.
-lAdIdAccess is a part of Google Analytics SDK.
Don't forget to add a path to the SDK in Build Settings -> Framework Search Paths. Select "recursive" if the SDK is in a subfolder.

Chartboost with Unity 5 on xcode missing linking file

Has anybody used chatboost with unity 5 on IOS? I get a linking error and a warning
warning: directory not found for option '-L/Users/alexm/Downloads/iosFree/LibrariesPlugins/iOS'
ld: library not found for -lChartboost
clang: error: linker command failed with exit code 1 (use -v to see invocation)
On the Android everything is fine. Do I have to do anything extra other what i mentioned on chartboost integration page?
Make sure that if the Chartboost plugin is using some PostprocessBuildPlayer stuff, that is isn't getting clobbered by a different script.
If, in XCode, you check the build phases tab for linked frameworks and you don't see Chartboost.framework, it's likely the build script not running correctly.

Resources