I've got this error after my build failed
Ld /Users/PouyaYarandi/Library/Developer/Xcode/DerivedData/Hesabdar-cmrqdmmqdgptpjbvcglvkazslyve/Build/Products/Debug-iphoneos/Hesabdar.app/Hesabdar normal arm64
cd /Users/PouyaYarandi/Documents/Hesabdar
export IPHONEOS_DEPLOYMENT_TARGET=9.3
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 arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -L/Users/PouyaYarandi/Library/Developer/Xcode/DerivedData/Hesabdar-cmrqdmmqdgptpjbvcglvkazslyve/Build/Products/Debug-iphoneos -L/Users/PouyaYarandi/Documents/Hesabdar -L/Users/PouyaYarandi/Documents/Hesabdar/Hesabdar/2.6 -L2 -F/Users/PouyaYarandi/Library/Developer/Xcode/DerivedData/Hesabdar-cmrqdmmqdgptpjbvcglvkazslyve/Build/Products/Debug-iphoneos -F/Users/PouyaYarandi/Documents/Hesabdar/Hesabdar -filelist /Users/PouyaYarandi/Library/Developer/Xcode/DerivedData/Hesabdar-cmrqdmmqdgptpjbvcglvkazslyve/Build/Intermediates/Hesabdar.build/Debug-iphoneos/Hesabdar.build/Objects-normal/arm64/Hesabdar.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -miphoneos-version-min=9.3 -dead_strip -Xlinker -no_deduplicate -Objc -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/PouyaYarandi/Library/Developer/Xcode/DerivedData/Hesabdar-cmrqdmmqdgptpjbvcglvkazslyve/Build/Intermediates/Hesabdar.build/Debug-iphoneos/Hesabdar.build/Objects-normal/arm64/Hesabdar.swiftmodule -lAdadClient /Users/PouyaYarandi/Library/Developer/Xcode/DerivedData/Hesabdar-cmrqdmmqdgptpjbvcglvkazslyve/Build/Products/Debug-iphoneos/Charts.framework/Charts -Xlinker -dependency_info -Xlinker /Users/PouyaYarandi/Library/Developer/Xcode/DerivedData/Hesabdar-cmrqdmmqdgptpjbvcglvkazslyve/Build/Intermediates/Hesabdar.build/Debug-iphoneos/Hesabdar.build/Objects-normal/arm64/Hesabdar_dependency_info.dat -o /Users/PouyaYarandi/Library/Developer/Xcode/DerivedData/Hesabdar-cmrqdmmqdgptpjbvcglvkazslyve/Build/Products/Debug-iphoneos/Hesabdar.app/Hesabdar
with this title:
clang: error: linker command failed with exit code 1
I've read past questions about this error but they couldn't help me.
Finally, I had a problem in my folder of project and with moving some files I solved my issue. Thank Rashwan L and Mr.UB for help.
Related
I tried to run my xcode project but i get the error File is universai (2 sl�ces) but does not contain the x86_64 architecture:
is there any way to fix it? this is the output, i tried searching put i didn't find a solution
Ld /Users//Library/Developer/Xcode/DerivedData/SalonApp_v3-fzxnatqzeeldmagmhlrpcsomcyct/Build/Products/Debug-iphonesimulator/nanopb/nanopb.framework/nanopb normal x86_64 (in target 'nanopb' from project 'Pods')
cd /Users/mohid/Desktop/App/SalonApp_v3/Pods
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios8.0-simulator -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk -L/Users/mohid/Library/Developer/Xcode/DerivedData/SalonApp_v3-fzxnatqzeeldmagmhlrpcsomcyct/Build/Products/Debug-iphonesimulator/nanopb -F/Users/mohid/Library/Developer/Xcode/DerivedData/SalonApp_v3-fzxnatqzeeldmagmhlrpcsomcyct/Build/Products/Debug-iphonesimulator/nanopb -filelist /Users/mohid/Library/Developer/Xcode/DerivedData/SalonApp_v3-fzxnatqzeeldmagmhlrpcsomcyct/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/nanopb.build/Objects-normal/x86_64/nanopb.LinkFileList -install_name #rpath/nanopb.framework/nanopb -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/mohid/Library/Developer/Xcode/DerivedData/SalonApp_v3-fzxnatqzeeldmagmhlrpcsomcyct/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/nanopb.build/Objects-normal/x86_64/nanopb_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -framework Foundation -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/mohid/Library/Developer/Xcode/DerivedData/SalonApp_v3-fzxnatqzeeldmagmhlrpcsomcyct/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/nanopb.build/Objects-normal/x86_64/nanopb_dependency_info.dat -o /Users/mohid/Library/Developer/Xcode/DerivedData/SalonApp_v3-fzxnatqzeeldmagmhlrpcsomcyct/Build/Products/Debug-iphonesimulator/nanopb/nanopb.framework/nanopb
ld: file is universai (2 sl\317ces) but does not contain the x86_64 architecture: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a file '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have to build vo-armwb.framework through shell script and now trying to use the same framework in my sample app but when trying to build the app I am getting framework not found error.
I tried to build .a or static library of the same code base and .a file is working perfectly fine but .framework gives me the error.
I am getting the following error:
Ld Build/Products/Debug-iphoneos/VoiceSampleApp.app/VoiceSampleApp
normal arm64
cd /Users/pradeepcr/Downloads/VoiceSampleApp
export IPHONEOS_DEPLOYMENT_TARGET=12.2
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
-Xlinker -rpath -Xlinker /usr/lib/swift -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk
-L/Users/pradeepcr/Downloads/VoiceSampleApp/Build/Products/Debug-iphoneos
-L/Users/pradeepcr/Downloads/VoiceSampleApp/VoiceSampleApp/AMRAudioSwift
-L/Users/pradeepcr/Downloads/VoiceSampleApp -F/Users/pradeepcr/Downloads/VoiceSampleApp/Build/Products/Debug-iphoneos
-F/Users/pradeepcr/Downloads/VoiceSampleApp/VoiceSampleApp -filelist /Users/pradeepcr/Downloads/VoiceSampleApp/Build/Intermediates.noindex/VoiceSampleApp.build/Debug-iphoneos/VoiceSampleApp.build/Objects-normal/arm64/VoiceSampleApp.LinkFileList
-Xlinker -rpath -Xlinker #executable_path/Frameworks -miphoneos-version-min=12.2 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/pradeepcr/Downloads/VoiceSampleApp/Build/Intermediates.noindex/VoiceSampleApp.build/Debug-iphoneos/VoiceSampleApp.build/Objects-normal/arm64/VoiceSampleApp_lto.o
-Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos
-Xlinker -add_ast_path -Xlinker /Users/pradeepcr/Downloads/VoiceSampleApp/Build/Intermediates.noindex/VoiceSampleApp.build/Debug-iphoneos/VoiceSampleApp.build/Objects-normal/arm64/VoiceSampleApp.swiftmodule
-framework vo-amrwb -framework AMRAudioSwift -Xlinker -dependency_info -Xlinker /Users/pradeepcr/Downloads/VoiceSampleApp/Build/Intermediates.noindex/VoiceSampleApp.build/Debug-iphoneos/VoiceSampleApp.build/Objects-normal/arm64/VoiceSampleApp_dependency_info.dat
-o /Users/pradeepcr/Downloads/VoiceSampleApp/Build/Products/Debug-iphoneos/VoiceSampleApp.app/VoiceSampleApp
ld: framework not found vo-amrwb clang: error: linker command failed
with exit code 1 (use -v to see invocation)
I am trying not to bother anybody here after getting spanked by the community for my last question. Sorry but I have been trying to find the answer for a week. I know that people here dont like to help others learn coding but I need to solve this and if I get yelled at I get yelled at so here goes;
I am getting the following error;
ld: framework not found ParseUI for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have been doing things in terminal like many people have been telling others but I cant fix this. I really dont know if it is my code or my brand new MacBook pro running Sierra. I am running xcode 9.1.
I am sorry to bother people here but I am seriously stuck.
cd /Users/rogerschroeder/Desktop/DogTrainingApp
export IPHONEOS_DEPLOYMENT_TARGET=9.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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 x86_64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk -L/Users/rogerschroeder/Library/Developer/Xcode/DerivedData/DogTrainingApp-atwbaysopzwnnjgrzzbrvzspbibm/Build/Products/Debug-iphonesimulator -F/Users/rogerschroeder/Library/Developer/Xcode/DerivedData/DogTrainingApp-atwbaysopzwnnjgrzzbrvzspbibm/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -filelist /Users/rogerschroeder/Library/Developer/Xcode/DerivedData/DogTrainingApp-atwbaysopzwnnjgrzzbrvzspbibm/Build/Intermediates.noindex/DogTrainingApp.build/Debug-iphonesimulator/DogTrainingAppTests.build/Objects-normal/x86_64/DogTrainingAppTests.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -mios-simulator-version-min=9.0 -dead_strip -bundle_loader /Users/rogerschroeder/Library/Developer/Xcode/DerivedData/DogTrainingApp-atwbaysopzwnnjgrzzbrvzspbibm/Build/Products/Debug-iphonesimulator/DogTrainingApp.app/DogTrainingApp -Xlinker -object_path_lto -Xlinker /Users/rogerschroeder/Library/Developer/Xcode/DerivedData/DogTrainingApp-atwbaysopzwnnjgrzzbrvzspbibm/Build/Intermediates.noindex/DogTrainingApp.build/Debug-iphonesimulator/DogTrainingAppTests.build/Objects-normal/x86_64/DogTrainingAppTests_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/rogerschroeder/Library/Developer/Xcode/DerivedData/DogTrainingApp-atwbaysopzwnnjgrzzbrvzspbibm/Build/Intermediates.noindex/DogTrainingApp.build/Debug-iphonesimulator/DogTrainingAppTests.build/Objects-normal/x86_64/DogTrainingAppTests.swiftmodule -framework XCTest -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/rogerschroeder/Library/Developer/Xcode/DerivedData/DogTrainingApp-atwbaysopzwnnjgrzzbrvzspbibm/Build/Intermediates.noindex/DogTrainingApp.build/Debug-iphonesimulator/DogTrainingAppTests.build/DogTrainingAppTests.xctest.xcent -Xlinker -dependency_info -Xlinker /Users/rogerschroeder/Library/Developer/Xcode/DerivedData/DogTrainingApp-atwbaysopzwnnjgrzzbrvzspbibm/Build/Intermediates.noindex/DogTrainingApp.build/Debug-iphonesimulator/DogTrainingAppTests.build/Objects-normal/x86_64/DogTrainingAppTests_dependency_info.dat -o /Users/rogerschroeder/Library/Developer/Xcode/DerivedData/DogTrainingApp-atwbaysopzwnnjgrzzbrvzspbibm/Build/Products/Debug-iphonesimulator/DogTrainingApp.app/PlugIns/DogTrainingAppTests.xctest/DogTrainingAppTests
ld: framework not found ParseUI for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I update my xcode to version 8.2.1
and when i build product on xcode the below error occurred:
and my main storyboard like this:
[![storyboard][2]][2]
i search many time but not found any correct solution for this error
anyone can help me?
Edit1:
when i create new project on xcode this error occurred :
Ld /Users/****/Library/Developer/Xcode/DerivedData/test3-brvuxcfxdgdryzefaivvhtzorpiy/Build/Products/Debug-iphonesimulator/test3.app/test3 normal x86_64
cd /Users/****/Desktop/test3
export IPHONEOS_DEPLOYMENT_TARGET=10.2
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.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 x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -L/Users/****/Library/Developer/Xcode/DerivedData/test3-brvuxcfxdgdryzefaivvhtzorpiy/Build/Products/Debug-iphonesimulator -F/Users/****/Library/Developer/Xcode/DerivedData/test3-brvuxcfxdgdryzefaivvhtzorpiy/Build/Products/Debug-iphonesimulator -filelist /Users/****/Library/Developer/Xcode/DerivedData/test3-brvuxcfxdgdryzefaivvhtzorpiy/Build/Intermediates/test3.build/Debug-iphonesimulator/test3.build/Objects-normal/x86_64/test3.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -mios-simulator-version-min=10.2 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/****/Library/Developer/Xcode/DerivedData/test3-brvuxcfxdgdryzefaivvhtzorpiy/Build/Intermediates/test3.build/Debug-iphonesimulator/test3.build/Objects-normal/x86_64/test3_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/****/Library/Developer/Xcode/DerivedData/test3-brvuxcfxdgdryzefaivvhtzorpiy/Build/Intermediates/test3.build/Debug-iphonesimulator/test3.build/Objects-normal/x86_64/test3.swiftmodule -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/****/Library/Developer/Xcode/DerivedData/test3-brvuxcfxdgdryzefaivvhtzorpiy/Build/Intermediates/test3.build/Debug-iphonesimulator/test3.build/test3.app.xcent -Xlinker -dependency_info -Xlinker /Users/****/Library/Developer/Xcode/DerivedData/test3-brvuxcfxdgdryzefaivvhtzorpiy/Build/Intermediates/test3.build/Debug-iphonesimulator/test3.build/Objects-normal/x86_64/test3_dependency_info.dat -o /Users/****/Library/Developer/Xcode/DerivedData/test3-brvuxcfxdgdryzefaivvhtzorpiy/Build/Products/Debug-iphonesimulator/test3.app/test3
ld: framework not found Foundation
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I remove xcode
Install again from app store and every things be allright
I solved this error by following the below steps in Xcode 8.3.3,
Quit Xcode
Clear derived data folder of Xcode
Relaunch Xcode
Clean and run the project again
I am trying to do an app for retail store , I was using Xcode 6.3 due to library issues i tried to move to Xcode 7.2 , when i tried to upgrade and run my app , i get the following error .
The following is the error
Ld /Users/jg/Library/Developer/Xcode/DerivedData/Enrico-ecxoqwtsnrjpynfphdobukwkpjdi/Build/Products/Debug-iphonesimulator/Enrico.app/Enrico normal x86_64
cd /Users/jg/Documents/Workspace/Enrico
export IPHONEOS_DEPLOYMENT_TARGET=8.3
export PATH="/Applications/Xcode 7.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode 7.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode\ 7.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode\ 7.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -L/Users/jg/Library/Developer/Xcode/DerivedData/Enrico-ecxoqwtsnrjpynfphdobukwkpjdi/Build/Products/Debug-iphonesimulator -F/Users/jg/Library/Developer/Xcode/DerivedData/Enrico-ecxoqwtsnrjpynfphdobukwkpjdi/Build/Products/Debug-iphonesimulator -filelist /Users/jg/Library/Developer/Xcode/DerivedData/Enrico-ecxoqwtsnrjpynfphdobukwkpjdi/Build/Intermediates/Enrico.build/Debug-iphonesimulator/Enrico.build/Objects-normal/x86_64/Enrico.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -mios-simulator-version-min=8.3 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode\ 7.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/jg/Library/Developer/Xcode/DerivedData/Enrico-ecxoqwtsnrjpynfphdobukwkpjdi/Build/Intermediates/Enrico.build/Debug-iphonesimulator/Enrico.build/Objects-normal/x86_64/Enrico.swiftmodule -lPods -Xlinker -dependency_info -Xlinker /Users/jg/Library/Developer/Xcode/DerivedData/Enrico-ecxoqwtsnrjpynfphdobukwkpjdi/Build/Intermediates/Enrico.build/Debug-iphonesimulator/Enrico.build/Objects-normal/x86_64/Enrico_dependency_info.dat -o /Users/jg/Library/Developer/Xcode/DerivedData/Enrico-ecxoqwtsnrjpynfphdobukwkpjdi/Build/Products/Debug-iphonesimulator/Enrico.app/Enrico
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've checked other "library not found for -lPods" on StackOverflow but i could not find a solution.Please help me to find a solution.
Thanks in advance