cocoa-rest-client icon indicating copy to clipboard operation
cocoa-rest-client copied to clipboard

Can't compile the project

Open opieri opened this issue 6 years ago • 8 comments

Do I have miss something ?

Compilation error :

Ld /Users/olivier/Library/Developer/Xcode/DerivedData/CocoaRestClient-bxaputffumrnfbbwjhcqbilddxjx/Build/Products/Debug/CocoaRestClient.app/Contents/MacOS/CocoaRestClient normal x86_64 cd /Users/olivier/Documents/Dev/cocoa-rest-client-master export MACOSX_DEPLOYMENT_TARGET=10.12 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -L/Users/olivier/Library/Developer/Xcode/DerivedData/CocoaRestClient-bxaputffumrnfbbwjhcqbilddxjx/Build/Products/Debug -L/Users/olivier/Library/Developer/Xcode/DerivedData/CocoaRestClient-bxaputffumrnfbbwjhcqbilddxjx/Build/Products/Debug/ACEView -L/Users/olivier/Library/Developer/Xcode/DerivedData/CocoaRestClient-bxaputffumrnfbbwjhcqbilddxjx/Build/Products/Debug/Base64 -L/Users/olivier/Library/Developer/Xcode/DerivedData/CocoaRestClient-bxaputffumrnfbbwjhcqbilddxjx/Build/Products/Debug/DiffMatchPatch-ObjC -L/Users/olivier/Library/Developer/Xcode/DerivedData/CocoaRestClient-bxaputffumrnfbbwjhcqbilddxjx/Build/Products/Debug/MsgPackSerialization -L/Users/olivier/Library/Developer/Xcode/DerivedData/CocoaRestClient-bxaputffumrnfbbwjhcqbilddxjx/Build/Products/Debug/SBJson -F/Users/olivier/Library/Developer/Xcode/DerivedData/CocoaRestClient-bxaputffumrnfbbwjhcqbilddxjx/Build/Products/Debug -F/Users/olivier/Documents/Dev/cocoa-rest-client-master/Pods/Sparkle -F/Users/olivier/Documents/Dev/cocoa-rest-client-master -filelist /Users/olivier/Library/Developer/Xcode/DerivedData/CocoaRestClient-bxaputffumrnfbbwjhcqbilddxjx/Build/Intermediates.noindex/CocoaRestClient.build/Debug/CocoaRestClient.build/Objects-normal/x86_64/CocoaRestClient.LinkFileList -Xlinker -rpath -Xlinker @loader_path/../Frameworks -Xlinker -rpath -Xlinker @executable_path/../Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -mmacosx-version-min=10.12 -Xlinker -object_path_lto -Xlinker /Users/olivier/Library/Developer/Xcode/DerivedData/CocoaRestClient-bxaputffumrnfbbwjhcqbilddxjx/Build/Intermediates.noindex/CocoaRestClient.build/Debug/CocoaRestClient.build/Objects-normal/x86_64/CocoaRestClient_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -ObjC -lACEView -lBase64 -lDiffMatchPatch-ObjC -lMsgPackSerialization -lSBJson -framework Sparkle -framework WebKit -lz -framework QuartzCore -framework WebKit -framework Cocoa -lPods-CocoaRestClient -lPods -Xlinker -dependency_info -Xlinker /Users/olivier/Library/Developer/Xcode/DerivedData/CocoaRestClient-bxaputffumrnfbbwjhcqbilddxjx/Build/Intermediates.noindex/CocoaRestClient.build/Debug/CocoaRestClient.build/Objects-normal/x86_64/CocoaRestClient_dependency_info.dat -o /Users/olivier/Library/Developer/Xcode/DerivedData/CocoaRestClient-bxaputffumrnfbbwjhcqbilddxjx/Build/Products/Debug/CocoaRestClient.app/Contents/MacOS/CocoaRestClient

opieri avatar May 12 '18 09:05 opieri

Did you install CocoaPods and run pod install ?

mmattozzi avatar May 12 '18 14:05 mmattozzi

Yes

opieri avatar May 12 '18 16:05 opieri

What version of xcode are you using? Is it capable of building for 10.12?

mmattozzi avatar May 12 '18 17:05 mmattozzi

9.3.1

opieri avatar May 12 '18 18:05 opieri

I am experiencing the same behavior and yes I also installed CocoaPods and ran pod install. Then I opened the workspace "open CocoaRestClient.xcworkspace/"

Ld /Users/dvalecillos/Library/Developer/Xcode/DerivedData/CocoaRestClient-hdggcvvnxjfkhbgtbxzypuaxxyyj/Build/Products/Debug/CocoaRestClient.app/Contents/MacOS/CocoaRestClient normal x86_64 cd "/Users/dvalecillos/Code/Personal/# Apps/restclient" export MACOSX_DEPLOYMENT_TARGET=10.12 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -L/Users/dvalecillos/Library/Developer/Xcode/DerivedData/CocoaRestClient-hdggcvvnxjfkhbgtbxzypuaxxyyj/Build/Products/Debug -L/Users/dvalecillos/Library/Developer/Xcode/DerivedData/CocoaRestClient-hdggcvvnxjfkhbgtbxzypuaxxyyj/Build/Products/Debug/ACEView -L/Users/dvalecillos/Library/Developer/Xcode/DerivedData/CocoaRestClient-hdggcvvnxjfkhbgtbxzypuaxxyyj/Build/Products/Debug/Base64 -L/Users/dvalecillos/Library/Developer/Xcode/DerivedData/CocoaRestClient-hdggcvvnxjfkhbgtbxzypuaxxyyj/Build/Products/Debug/DiffMatchPatch-ObjC -L/Users/dvalecillos/Library/Developer/Xcode/DerivedData/CocoaRestClient-hdggcvvnxjfkhbgtbxzypuaxxyyj/Build/Products/Debug/MsgPackSerialization -L/Users/dvalecillos/Library/Developer/Xcode/DerivedData/CocoaRestClient-hdggcvvnxjfkhbgtbxzypuaxxyyj/Build/Products/Debug/SBJson -F/Users/dvalecillos/Library/Developer/Xcode/DerivedData/CocoaRestClient-hdggcvvnxjfkhbgtbxzypuaxxyyj/Build/Products/Debug -F/Users/dvalecillos/Code/Personal/#\ Apps/restclient/Pods/Sparkle -F/Users/dvalecillos/Code/Personal/#\ Apps/restclient -filelist /Users/dvalecillos/Library/Developer/Xcode/DerivedData/CocoaRestClient-hdggcvvnxjfkhbgtbxzypuaxxyyj/Build/Intermediates.noindex/CocoaRestClient.build/Debug/CocoaRestClient.build/Objects-normal/x86_64/CocoaRestClient.LinkFileList -Xlinker -rpath -Xlinker @loader_path/../Frameworks -Xlinker -rpath -Xlinker @executable_path/../Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -mmacosx-version-min=10.12 -Xlinker -object_path_lto -Xlinker /Users/dvalecillos/Library/Developer/Xcode/DerivedData/CocoaRestClient-hdggcvvnxjfkhbgtbxzypuaxxyyj/Build/Intermediates.noindex/CocoaRestClient.build/Debug/CocoaRestClient.build/Objects-normal/x86_64/CocoaRestClient_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -ObjC -lACEView -lBase64 -lDiffMatchPatch-ObjC -lMsgPackSerialization -lSBJson -framework Sparkle -framework WebKit -lz -framework QuartzCore -framework WebKit -framework Cocoa -lPods-CocoaRestClient -lPods -Xlinker -dependency_info -Xlinker /Users/dvalecillos/Library/Developer/Xcode/DerivedData/CocoaRestClient-hdggcvvnxjfkhbgtbxzypuaxxyyj/Build/Intermediates.noindex/CocoaRestClient.build/Debug/CocoaRestClient.build/Objects-normal/x86_64/CocoaRestClient_dependency_info.dat -o /Users/dvalecillos/Library/Developer/Xcode/DerivedData/CocoaRestClient-hdggcvvnxjfkhbgtbxzypuaxxyyj/Build/Products/Debug/CocoaRestClient.app/Contents/MacOS/CocoaRestClient

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

dilmerv avatar May 28 '18 02:05 dilmerv

It does seem related to pulling in what's generated by cocoapods. There's a discussion about this error on Stackoverflow: https://stackoverflow.com/questions/9863836/library-not-found-for-lpods ... although it sounds like you are at least opening the .xcworkspace as you should be.

mmattozzi avatar May 28 '18 03:05 mmattozzi

Running Xcode 9.4.1 still issues, I will keep trying...

dilmerv avatar Jun 25 '18 02:06 dilmerv

There's also some suggestions in the Cocoapods FAQ: http://guides.cocoapods.org/using/troubleshooting.html

Are you able to compile and run any other projects built with CocoaPods?

mmattozzi avatar Jun 25 '18 03:06 mmattozzi