All,
I am having trouble compiling an old project I saved to dropbox, and then downloaded to my computer after a hard drive wipe. I believe I have installed all appropriate frameworks again, but am met with the following error:
Ld /Users/jclark/Library/Developer/Xcode/DerivedData/RMAPS_Fire-axrgcesnhsncrjgrcnvuslkdxshc/Build/Products/Debug-iphonesimulator/RMAPS\ FireTests.xctest/RMAPS\ FireTests normal x86_64
cd "/Users/jclark/Desktop/RMAPS Fire v.1"
export IPHONEOS_DEPLOYMENT_TARGET=7.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk -L/Users/jclark/Library/Developer/Xcode/DerivedData/RMAPS_Fire-axrgcesnhsncrjgrcnvuslkdxshc/Build/Products/Debug-iphonesimulator -F/Users/jclark/Library/Developer/Xcode/DerivedData/RMAPS_Fire-axrgcesnhsncrjgrcnvuslkdxshc/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/Developer/Library/Frameworks -filelist /Users/jclark/Library/Developer/Xcode/DerivedData/RMAPS_Fire-axrgcesnhsncrjgrcnvuslkdxshc/Build/Intermediates/RMAPS\ Fire.build/Debug-iphonesimulator/RMAPS\ FireTests.build/Objects-normal/x86_64/RMAPS\ FireTests.LinkFileList -bundle_loader /Users/jclark/Library/Developer/Xcode/DerivedData/RMAPS_Fire-axrgcesnhsncrjgrcnvuslkdxshc/Build/Products/Debug-iphonesimulator/RMAPS\ Fire.app -Xlinker -objc_abi_version -Xlinker 2 -framework XCTest -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.1 -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/jclark/Library/Developer/Xcode/DerivedData/RMAPS_Fire-axrgcesnhsncrjgrcnvuslkdxshc/Build/Intermediates/RMAPS\ Fire.build/Debug-iphonesimulator/RMAPS\ FireTests.build/Objects-normal/x86_64/RMAPS\ FireTests_dependency_info.dat -o /Users/jclark/Library/Developer/Xcode/DerivedData/RMAPS_Fire-axrgcesnhsncrjgrcnvuslkdxshc/Build/Products/Debug-iphonesimulator/RMAPS\ FireTests.xctest/RMAPS\ FireTests
ld: can't map file, errno=22 file'/Users/jclark/Library/Developer/Xcode/DerivedData/RMAPS_Fire-axrgcesnhsncrjgrcnvuslkdxshc/Build/Products/Debug-iphonesimulator/RMAPS Fire.app' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have checked that this is an appropriate path and have search the site and found similar errors but cannot seem to resolve this one on my own. Any help is appreciated.
XCode version 6.2 (using Mavericks)
Related
I have just installed the tesseraact OCR framework using the github instructions but i keep getting this error when building:
Ld /Users/wayne.rumble/Library/Developer/Xcode/DerivedData/Splitter-fkucamufumrohuhfuivayvewkjdc/Build/Products/Debug-iphoneos/TesseractOCRiOS/TesseractOCR.framework/TesseractOCR normal armv7
cd /Users/wayne.rumble/Documents/iOS/Splitter/Pods
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode_7.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode_7.3.1.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode_7.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -dynamiclib -isysroot /Applications/Xcode_7.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -L/Users/wayne.rumble/Library/Developer/Xcode/DerivedData/Splitter-fkucamufumrohuhfuivayvewkjdc/Build/Products/Debug-iphoneos/TesseractOCRiOS -L/Users/wayne.rumble/Documents/iOS/Splitter/Pods/TesseractOCRiOS/TesseractOCR/lib -F/Users/wayne.rumble/Library/Developer/Xcode/DerivedData/Splitter-fkucamufumrohuhfuivayvewkjdc/Build/Products/Debug-iphoneos/TesseractOCRiOS -filelist /Users/wayne.rumble/Library/Developer/Xcode/DerivedData/Splitter-fkucamufumrohuhfuivayvewkjdc/Build/Intermediates/Pods.build/Debug-iphoneos/TesseractOCRiOS.build/Objects-normal/armv7/TesseractOCR.LinkFileList -install_name #rpath/TesseractOCR.framework/TesseractOCR -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -miphoneos-version-min=8.0 -dead_strip -Xlinker -no_deduplicate -fembed-bitcode-marker -weak_library /usr/lib/libstdc++.6.0.9.dylib -llept -lstdc++ -ltesseract_all -framework Foundation -framework UIKit -fobjc-arc -fobjc-link-runtime -framework Foundation -framework UIKit -single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/wayne.rumble/Library/Developer/Xcode/DerivedData/Splitter-fkucamufumrohuhfuivayvewkjdc/Build/Intermediates/Pods.build/Debug-iphoneos/TesseractOCRiOS.build/Objects-normal/armv7/TesseractOCR_dependency_info.dat -o /Users/wayne.rumble/Library/Developer/Xcode/DerivedData/Splitter-fkucamufumrohuhfuivayvewkjdc/Build/Products/Debug-iphoneos/TesseractOCRiOS/TesseractOCR.framework/TesseractOCR
ld: -weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm fairly new to using Swift and Xcode and am struggling to read this error code.
Any help would be much appreciated.
Thanks
ld: -weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The linker is telling what the issue is here. I would try turning the Xcode setting ENABLE_BITCODE=YES. to ENABLE_BITCODE=NO and compile again and see if it removes that error. On the project settings view in Xcode you should be able to search for this setting and set to NO.
It turns out i had changed the bitcode settings for the target but not the project!
I have project with cocoa pods and TesseractOCRiOS - XCODE 7.1 (7B91b)
While I'm building app for iPad (9.1) TesseractOCRiOS Framework failed with this Error
Building on simulator works fine..
I have tried to
Purge deriver data,
clean project,
set ENABLE_BITCODE=NO
set Build Active Architecture Only=NO
I don't understand what this error means :(
Ld /Users/whipstercz/Library/Developer/Xcode/DerivedData/sw-paperless-flbrahykkapkkfeylglxcishyehc/Build/Products/Debug-iphoneos/TesseractOCR.framework/TesseractOCR normal armv7
cd /Users/whipstercz/git/sw-paperless-app/sw-paperless/Pods
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk -L/Users/whipstercz/Library/Developer/Xcode/DerivedData/sw-paperless-flbrahykkapkkfeylglxcishyehc/Build/Products/Debug-iphoneos -L/Users/whipstercz/git/sw-paperless-app/sw-paperless/Pods/TesseractOCRiOS/TesseractOCR/lib -F/Users/whipstercz/Library/Developer/Xcode/DerivedData/sw-paperless-flbrahykkapkkfeylglxcishyehc/Build/Products/Debug-iphoneos -filelist /Users/whipstercz/Library/Developer/Xcode/DerivedData/sw-paperless-flbrahykkapkkfeylglxcishyehc/Build/Intermediates/Pods.build/Debug-iphoneos/TesseractOCRiOS.build/Objects-normal/armv7/TesseractOCR.LinkFileList -install_name #rpath/TesseractOCR.framework/TesseractOCR -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -miphoneos-version-min=8.0 -dead_strip -fembed-bitcode-marker -weak_library /usr/lib/libstdc++.6.0.9.dylib -llept -lstdc++ -ltesseract_all -framework Foundation -framework UIKit -fobjc-arc -fobjc-link-runtime -framework Foundation -framework UIKit -single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/whipstercz/Library/Developer/Xcode/DerivedData/sw-paperless-flbrahykkapkkfeylglxcishyehc/Build/Intermediates/Pods.build/Debug-iphoneos/TesseractOCRiOS.build/Objects-normal/armv7/TesseractOCR_dependency_info.dat -o /Users/whipstercz/Library/Developer/Xcode/DerivedData/sw-paperless-flbrahykkapkkfeylglxcishyehc/Build/Products/Debug-iphoneos/TesseractOCR.framework/TesseractOCR
ld: -weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have found Error
Problem was that i had more cocoa pods dependecies.
Not all of them had ENABLE_BITCODE flag disabled
i have error like this :
Ld /Users/user/Library/Developer/Xcode/DerivedData/Pams_v-1.1-cmybounmouobwianhdnootdokdam/Build/Products/Debug-iphonesimulator/PAMS.app/PAMS normal x86_64
cd "/Users/user/Desktop/iOS Maul Testing/Pams v-1.1"
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -L/Users/user/Library/Developer/Xcode/DerivedData/Pams_v-1.1-cmybounmouobwianhdnootdokdam/Build/Products/Debug-iphonesimulator -F/Users/user/Library/Developer/Xcode/DerivedData/Pams_v-1.1-cmybounmouobwianhdnootdokdam/Build/Products/Debug-iphonesimulator -filelist /Users/user/Library/Developer/Xcode/DerivedData/Pams_v-1.1-cmybounmouobwianhdnootdokdam/Build/Intermediates/Pams\ v-1.1.build/Debug-iphonesimulator/Pams\ v-1.1.build/Objects-normal/x86_64/PAMS.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/Pams_v-1.1-cmybounmouobwianhdnootdokdam/Build/Intermediates/Pams\ v-1.1.build/Debug-iphonesimulator/Pams\ v-1.1.build/Objects-normal/x86_64/PAMS.swiftmodule -mios-simulator-version-min=8.0 -framework Foundation -framework AVFoundation -framework CoreFoundation -framework Security -Xlinker -dependency_info -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/Pams_v-1.1-cmybounmouobwianhdnootdokdam/Build/Intermediates/Pams\ v-1.1.build/Debug-iphonesimulator/Pams\ v-1.1.build/Objects-normal/x86_64/PAMS_dependency_info.dat -o /Users/user/Library/Developer/Xcode/DerivedData/Pams_v-1.1-cmybounmouobwianhdnootdokdam/Build/Products/Debug-iphonesimulator/PAMS.app/PAMS
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
i try to delete DrivedData Folder and clear build but its still error...
Try one thing :
Go to Project -> Build Phases -> Compiled Sources and Make sure main.m is present there .
I'm having some trouble to deploy my app on my device. The code works fine with the iOS simulator, but when I try to run it on my iOS device it shows the following error:
Ld /Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Intermediates/App.build/Debug-iphoneos/AppTests.build/Objects-normal/arm64/AppTests normal arm64
cd "/Users/user/Documents/Demo app/App"
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -L/Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Products/Debug-iphoneos -F/Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Products/Debug-iphoneos -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/Developer/Library/Frameworks -filelist /Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Intermediates/App.build/Debug-iphoneos/AppTests.build/Objects-normal/arm64/AppTests.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -dead_strip -bundle_loader /Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Products/Debug-iphoneos/App.app/App -framework XCTest -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=8.0 -Xlinker -dependency_info -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Intermediates/App.build/Debug-iphoneos/AppTests.build/Objects-normal/arm64/AppTests_dependency_info.dat -o /Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Intermediates/App.build/Debug-iphoneos/AppTests.build/Objects-normal
ld: file not found: /Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Products/Debug-iphoneos/App.app/App
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I can't understand what's wrong with my app. I searched on the web to try to understand what's wrong and I found the following solution:
Check if I import .h files and not .m files --> In my app all ok
Check the correct Framework --> In my app I use only the default Framework, so no problem
Check the Library search path --> In my app there are no problem about this
So what's the problem? Can you help me to fix it?
I just started using cocoapods and can't figure out what the heck is going on. I've installed a library for a ViewController and keep getting the following errors:
Ld /Users/dominikandrzejczuk/Library/Developer/Xcode/DerivedData/AMSlideMenu-eqdwyqtxcitqwzavvophqeeuqgyn/Build/Products/Debug-iphonesimulator/AMSlideMenu.app/AMSlideMenu normal i386
cd "/Users/dominikandrzejczuk/AMSlideMenu/AMSlideMenuDemo-with Storyboard"
export IPHONEOS_DEPLOYMENT_TARGET=6.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/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/iPhoneSimulator7.1.sdk -L/Users/dominikandrzejczuk/Library/Developer/Xcode/DerivedData/AMSlideMenu-eqdwyqtxcitqwzavvophqeeuqgyn/Build/Products/Debug-iphonesimulator -F/Users/dominikandrzejczuk/Library/Developer/Xcode/DerivedData/AMSlideMenu-eqdwyqtxcitqwzavvophqeeuqgyn/Build/Products/Debug-iphonesimulator -filelist /Users/dominikandrzejczuk/Library/Developer/Xcode/DerivedData/AMSlideMenu-eqdwyqtxcitqwzavvophqeeuqgyn/Build/Intermediates/AMSlideMenu.build/Debug-iphonesimulator/AMSlideMenu.build/Objects-normal/i386/AMSlideMenu.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -framework CoreGraphics -framework UIKit -framework Foundation -lPods-AMSlideMenu -Xlinker -dependency_info -Xlinker /Users/dominikandrzejczuk/Library/Developer/Xcode/DerivedData/AMSlideMenu-eqdwyqtxcitqwzavvophqeeuqgyn/Build/Intermediates/AMSlideMenu.build/Debug-iphonesimulator/AMSlideMenu.build/Objects-normal/i386/AMSlideMenu_dependency_info.dat -o /Users/dominikandrzejczuk/Library/Developer/Xcode/DerivedData/AMSlideMenu-eqdwyqtxcitqwzavvophqeeuqgyn/Build/Products/Debug-iphonesimulator/AMSlideMenu.app/AMSlideMenu
duplicate symbol _OBJC_METACLASS_$_AMSlideMenuContentSegue in:
/Users/dominikandrzejczuk/Library/Developer/Xcode/DerivedData/AMSlideMenu-eqdwyqtxcitqwzavvophqeeuqgyn/Build/Intermediates/AMSlideMenu.build/Debug-iphonesimulator/AMSlideMenu.build/Objects-normal/i386/AMSlideMenuContentSegue.o
/Users/dominikandrzejczuk/Library/Developer/Xcode/DerivedData/AMSlideMenu-eqdwyqtxcitqwzavvophqeeuqgyn/Build/Products/Debug-iphonesimulator/libPods-AMSlideMenu.a(AMSlideMenuContentSegue.o)
ld: 35 duplicate symbols for architecture i386
wclang: error: linker command failed with exit code 1 (use -v to see invocation)
I've tried removing the Library path in build settings, I've tried reinstalling a pod install and pretty much every other option recommended on the web.
I have no idea where to go from here...