In xcode(ver6.1), after pop in cocoapods, Build Failed.clang:error:linker command failed with exit code 1 (use-v to see invocation)

Asked 1 years ago, Updated 1 years ago, 94 views

I am creating an app with xcode(ver6.1). I installed pop with cocoapods to use for animation.

"After that, I tried to build, but ""Build Failed"" happened." The following error occurred:

clang:error:linker command failed with exit code1 (use-v to see invocation)

I'm sorry, I'm an amateur, but I couldn't find a solution even after trying various things...

Please let me know if anyone knows the solution. Thank you for your cooperation.

Details of the error are as follows:

Ld/Users/konya/Library/Developer/Xcode/DerivedData/MuscleRace-gtoenwagxjhrkgnjvnipsmbjwcx/Build/Products/Debug-iphonesimulator/MuscleRace.app/MuscleRace normal i386
cd/Users/konya/Documents/apps/MuscleRace
export IPHONEOS_DEPLOYMENT_TARGET = 6.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -L/Users/konya/Library/Developer/Xcode/DerivedData/MuscleRace-gtoenwwagxjhrkgnjvnipsmbjwcx/Build/Products/Debug-iphonesimulator -F/Users/konya/Library/Developer/Xcode/DerivedData/MuscleRace-gtoenwwagxjhrkgnjvnipsmbjwcx/Build/Products/Debug-iphonesimulator -FKiiTutorialApp -F/Users/moshiur/git/TutorialApp/iOSSDKTutorialApp -F/Users/konya/Documents/apps/MuscleRace -filelist /Users/konya/Library/Developer/Xcode/DerivedData/MuscleRace-gtoenwwagxjhrkgnjvnipsmbjwcx/Build/Intermediates/MuscleRace.build/Debug-iphonesimulator/MuscleRace.build/Objects-normal/i386/MuscleRace.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lPods-pop -lc++ -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -framework Social -framework ImageIO -framework CoreGraphics -lsqlite3.0 -framework KiiSDK -framework Accounts -framework AssetsLibrary -framework Foundation -framework MobileCoreServices -framework QuartzCore -framework UIKit -framework Twitter -lPods -Xlinker -dependency_info -Xlinker /Users/konya/Library/Developer/Xcode/DerivedData/MuscleRace-gtoenwwagxjhrkgnjvnipsmbjwcx/Build/Intermediates/MuscleRace.build/Debug-iphonesimulator/MuscleRace.build/Objects-normal/i386/MuscleRace_dependency_info.dat-o/Users/konya/Library/Developer/Xcode/DerivedData/MuscleRace-gtoenwagxjhrkgnjvnipsmbjwcx/Build/Products/Debug-iphonesimulator/MuscleRace.app/MuscleRace

ld:warning:directory not found for option '-F/Users/moshiur/git/TutorialApp/iOSSDKTutorialApp'
ld —library not found for-lPods-pop
clang:error:linker command failed with exit code 1 (use-v to see invocation)

ios cocoapods

2022-09-30 19:26

3 Answers

When you open a project, do you open it from the project name.xcworkspace? If you were using CocoaPods, you would have had to open it from project name.xcworkspace instead of project name.xcodeproj


2022-09-30 19:26

The Build Settings-Search Paths-Library Search Paths specification may be incorrect. Does it contain a "\" backslash?

The following article shows a similar problem. http://qiita.com/kuuki_yomenaio/items/b1b826a45ee6ff00eb90


2022-09-30 19:26

I got the same error yesterday.

Xcode (7.2) Menu
 Product>clean
It's fixed now.

By the way, this is
It was also valid for にてAn unknown error occurred /


2022-09-30 19:26

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.