I accidentally delete target. I created again but i couldn't run my application again. When i set my AppDelegate i get an error.
Ld /Users/cihanozdiker/Library/Developer/Xcode/DerivedData/Moka-foueugicfassxcdbtgwkndrougpu/Build/Intermediates/Moka.build/Debug-iphoneos/Moka.build/Objects-normal/arm64/Moka normal arm64
cd /Users/cihanozdiker/Documents/MokaAfterMerchantFinished
export IPHONEOS_DEPLOYMENT_TARGET=9.1
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.2.sdk -L/Users/cihanozdiker/Library/Developer/Xcode/DerivedData/Moka-foueugicfassxcdbtgwkndrougpu/Build/Products/Debug-iphoneos -L../include -L../include/barcode -L../include/common -L../include/cyclone_crypto -L../include/EstimoteSDK -L../include/openssl -L../include/EstimoteSDK/Headers -L/Users/cihanozdiker/Documents/MokaAfterMerchantFinished -L../lib -L../lib/AESCrypt-ObjC-master -L../lib/RNCryptor -F/Users/cihanozdiker/Library/Developer/Xcode/DerivedData/Moka-foueugicfassxcdbtgwkndrougpu/Build/Products/Debug-iphoneos -filelist /Users/cihanozdiker/Library/Developer/Xcode/DerivedData/Moka-foueugicfassxcdbtgwkndrougpu/Build/Intermediates/Moka.build/Debug-iphoneos/Moka.build/Objects-normal/arm64/Moka.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -miphoneos-version-min=9.1 -ObjC -ObjC -fobjc-arc -fobjc-link-runtime -lcrypto -lssl -lC4NetSdk -Xlinker -dependency_info -Xlinker /Users/cihanozdiker/Library/Developer/Xcode/DerivedData/Moka-foueugicfassxcdbtgwkndrougpu/Build/Intermediates/Moka.build/Debug-iphoneos/Moka.build/Objects-normal/arm64/Moka_dependency_info.dat -o /Users/cihanozdiker/Library/Developer/Xcode/DerivedData/Moka-foueugicfassxcdbtgwkndrougpu/Build/Intermediates/Moka.build/Debug-iphoneos/Moka.build/Objects-normal/arm64/Moka
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_MokaAppDelegate", referenced from:
objc-class-ref in main.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I couldn't fix it. I'm using XCode 7.2.
Make sure that the MokaAppDelegate implementation file (probably MokaAppDelegate.m) is marked as part of your new target.
Select the file in the Project Navigator, look at the File Inspector panel and make sure the right target(s) are selected in the Target Membership pane.
Related
I have a problem when trying to build Xcode 9 app. It shows two errors:
1: "_mptcp_go", referenced from:
___36-[ViewController tappedOnJailbreak:]_block_invoke in ViewController.old: symbol(s) not found for architecture arm64
2: clang: error: linker command failed with exit code 1 (use -v to see invocation)
How do I fix it? (by the way, tried running workspace and .xcodeproj, but none of them worked)
Here is full code of errors:
Ld /Users/mac/Library/Developer/Xcode/DerivedData/Undecimus-alrztlqurpvdagfnhitjmaasoboy/Build/Products/Debug-iphoneos/Undecimus.app/Undecimus normal arm64
cd "/Users/mac/Desktop/SNIRL JB/Undecimus-master"
export IPHONEOS_DEPLOYMENT_TARGET=11.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 arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk -L/Users/mac/Library/Developer/Xcode/DerivedData/Undecimus-alrztlqurpvdagfnhitjmaasoboy/Build/Products/Debug-iphoneos -L/Users/mac/Desktop/SNIRL\ JB/Undecimus-master/Undecimus -F/Users/mac/Library/Developer/Xcode/DerivedData/Undecimus-alrztlqurpvdagfnhitjmaasoboy/Build/Products/Debug-iphoneos -F/Users/mac/Desktop/SNIRL\ JB/Undecimus-master/Undecimus -filelist /Users/mac/Library/Developer/Xcode/DerivedData/Undecimus-alrztlqurpvdagfnhitjmaasoboy/Build/Intermediates.noindex/Undecimus.build/Debug-iphoneos/Undecimus.build/Objects-normal/arm64/Undecimus.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -miphoneos-version-min=11.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/mac/Library/Developer/Xcode/DerivedData/Undecimus-alrztlqurpvdagfnhitjmaasoboy/Build/Intermediates.noindex/Undecimus.build/Debug-iphoneos/Undecimus.build/Objects-normal/arm64/Undecimus_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -framework IOKit -lMobileGestalt -ljb /Users/mac/Desktop/SNIRL\ JB/Undecimus-master/Undecimus/qilin.o -framework SpringBoardServices -lPods-Undecimus -Xlinker -dependency_info -Xlinker /Users/mac/Library/Developer/Xcode/DerivedData/Undecimus-alrztlqurpvdagfnhitjmaasoboy/Build/Intermediates.noindex/Undecimus.build/Debug-iphoneos/Undecimus.build/Objects-normal/arm64/Undecimus_dependency_info.dat -o /Users/mac/Library/Developer/Xcode/DerivedData/Undecimus-alrztlqurpvdagfnhitjmaasoboy/Build/Products/Debug-iphoneos/Undecimus.app/Undecimus
Undefined symbols for architecture arm64:
"_mptcp_go", referenced from:
___36-[ViewController tappedOnJailbreak:]_block_invoke in ViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
GitHub link to a project - https://github.com/Horunu/stuffy
I am creating a bar chart in iOS using TeleriKUi.framework but I got 3 linker error at run time.
I am using Xcode 5.
Ld /Users/harikant/Library/Developer/Xcode/DerivedData/DemoChart-dhiujvurrxcrawfzlfqevsxfnlkg/Build/Products/Debug-iphonesimulator/DemoChart.app/DemoChart normal i386
cd /Users/harikant/Desktop/DemoChart
setenv IPHONEOS_DEPLOYMENT_TARGET 7.0
setenv 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.0.sdk -L/Users/harikant/Library/Developer/Xcode/DerivedData/DemoChart-dhiujvurrxcrawfzlfqevsxfnlkg/Build/Products/Debug-iphonesimulator -F/Users/harikant/Library/Developer/Xcode/DerivedData/DemoChart-dhiujvurrxcrawfzlfqevsxfnlkg/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -filelist /Users/harikant/Library/Developer/Xcode/DerivedData/DemoChart-dhiujvurrxcrawfzlfqevsxfnlkg/Build/Intermediates/DemoChart.build/Debug-iphonesimulator/DemoChart.build/Objects-normal/i386/DemoChart.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.0 -framework GameKit -framework TelerikUI -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/harikant/Library/Developer/Xcode/DerivedData/DemoChart-dhiujvurrxcrawfzlfqevsxfnlkg/Build/Intermediates/DemoChart.build/Debug-iphonesimulator/DemoChart.build/Objects-normal/i386/DemoChart_dependency_info.dat -o /Users/harikant/Library/Developer/Xcode/DerivedData/DemoChart-dhiujvurrxcrawfzlfqevsxfnlkg/Build/Products/Debug-iphonesimulator/DemoChart.app/DemoChart
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_UIBlurEffect", referenced from:
objc-class-ref in TelerikUI(SideDrawerSlideInOnTop.o)
"_OBJC_CLASS_$_UIVisualEffectView", referenced from:
objc-class-ref in TelerikUI(SideDrawerSlideInOnTop.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Did you link the UIKit framework in your project? Usually when you get a 'Undefined symbols for architecture' error you can copy the method which it references and paste that into Google and see what framework it came from, if that framework was not linked in your project then just add the framework and try again. In your case '_UIBlurEffect' was not found and Google tells me that it's part of the UIKit Framework from Apple.
Ld /Users/Admin/Library/Developer/Xcode/DerivedData/Radius-cxycjazfyueurigdymnvyxtqwulq/Build/Products/Debug-iphonesimulator/Radius.app/Radius normal x86_64
cd /Users/Admin/Desktop/Radius/Radius
export IPHONEOS_DEPLOYMENT_TARGET=8.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 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -L/Users/Admin/Library/Developer/Xcode/DerivedData/Radius-cxycjazfyueurigdymnvyxtqwulq/Build/Products/Debug-iphonesimulator -L/Users/Admin/Desktop/Radius/Radius/Radius -F/Users/Admin/Library/Developer/Xcode/DerivedData/Radius-cxycjazfyueurigdymnvyxtqwulq/Build/Products/Debug-iphonesimulator -F/Users/Admin/Desktop/Radius/Radius/Radius -filelist /Users/Admin/Library/Developer/Xcode/DerivedData/Radius-cxycjazfyueurigdymnvyxtqwulq/Build/Intermediates/Radius.build/Debug-iphonesimulator/Radius.build/Objects-normal/x86_64/Radius.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.1 -framework FacebookSDK -framework AssetsLibrary -Xlinker -dependency_info -Xlinker /Users/Admin/Library/Developer/Xcode/DerivedData/Radius-cxycjazfyueurigdymnvyxtqwulq/Build/Intermediates/Radius.build/Debug-iphonesimulator/Radius.build/Objects-normal/x86_64/Radius_dependency_info.dat -o /Users/Admin/Library/Developer/Xcode/DerivedData/Radius-cxycjazfyueurigdymnvyxtqwulq/Build/Products/Debug-iphonesimulator/Radius.app/Radius
ld: warning: ignoring file /Users/Admin/Desktop/Radius/Radius/Radius/AssetsLibrary.framework/AssetsLibrary, missing required architecture x86_64 in file /Users/Admin/Desktop/Radius/Radius/Radius/AssetsLibrary.framework/AssetsLibrary (3 slices)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_ALAssetsLibrary", referenced from:
objc-class-ref in EditProfileViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The "clang: error: linker command failed with exit code 1" usually occurs when you accidentally added(import) the implementation file(.m) in place of the header(.h) file.
Check and confirm if EditProfileViewController.m is not imported.
The error indicates that /Users/Admin/Desktop/Radius/Radius/Radius/AssetsLibrary.framework/AssetsLibrary is missing an x86_64 simulator slice.
Assuming you built that framework yourself, update it with i386 and x86_64 simulator slices (build for i386 and x86_64 and then lipo the resulting slices into the universal framework).
If you got it from a 3rd party, contact them for a version of the framework that has all the appropriate slices.
I just removed the library and its references. Cleaned the project, again added the required libraries and checked all references and linking, Build and run the project.
It worked!
I was following along the instructions for building tests using xcode/appcode from TDD site. I got through the initial part ok and started to experiment in my own project, but I keep getting a linking error and can't figure out where from?
The output I get is this
Ld /Users/prasanth/Library/Developer/Xcode/DerivedData/acidplus-ctbnayjfiyhfxkccqyopjsnfagos/Build/Products/Debug-iphonesimulator/acidplusTests.octest/acidplusTests normal i386
cd /Volumes/Defiant/Freeradical/freeradical_newacidbase/acidplus
setenv IPHONEOS_DEPLOYMENT_TARGET 6.1
setenv 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 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/prasanth/Library/Developer/Xcode/DerivedData/acidplus-ctbnayjfiyhfxkccqyopjsnfagos/Build/Products/Debug-iphonesimulator -LLibs/OCMock/iOS -LLibs/OCMock/iOS/OCMock -F/Users/prasanth/Library/Developer/Xcode/DerivedData/acidplus-ctbnayjfiyhfxkccqyopjsnfagos/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -filelist /Users/prasanth/Library/Developer/Xcode/DerivedData/acidplus-ctbnayjfiyhfxkccqyopjsnfagos/Build/Intermediates/acidplus.build/Debug-iphonesimulator/acidplusTests.build/Objects-normal/i386/acidplusTests.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -force_load Libs/OCMock/iOS/libOCMock.a -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework CoreGraphics -framework SenTestingKit -framework UIKit -framework Foundation -lOCMock -o /Users/prasanth/Library/Developer/Xcode/DerivedData/acidplus-ctbnayjfiyhfxkccqyopjsnfagos/Build/Products/Debug-iphonesimulator/acidplusTests.octest/acidplusTests
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_BPG_testModelObject", referenced from:
objc-class-ref in testModelTest.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried looking at missing Sources or Linked libraries, but couldn't find anything. Anyone know what else could be wrong?
thanks!
Have you tried the following:
Go to XCode, Under Project -> do a clean and Build your solution again.
"_OBJC_CLASS_$_SBJSON", referenced from:
Objc-class-ref in JparseViewController.o
Symbol(s) not found for architecture i386
Clang: error: linker command failed with exit code 1 (use -v to see invocation)
Ld /Users/mag1/Library/Developer/Xcode/DerivedData/Jparse-heknsvlbknssribatbwgkuefjoja/Build/Products/Debug-iphonesimulator/Jparse.app/Jparse_armv7 armv7 i386
cd "/Users/mag1/Documents/Xcode Projects/Jparse"
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/mag1/Library/Developer/Xcode/DerivedData/Jparse-heknsvlbknssribatbwgkuefjoja/Build/Products/Debug-iphonesimulator -F/Users/mag1/Library/Developer/Xcode/DerivedData/Jparse-heknsvlbknssribatbwgkuefjoja/Build/Products/Debug-iphonesimulator -filelist /Users/mag1/Library/Developer/Xcode/DerivedData/Jparse-heknsvlbknssribatbwgkuefjoja/Build/Intermediates/Jparse.build/Debug-iphonesimulator/Jparse.build/Objects-armv7/i386/Jparse.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50000 -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/mag1/Library/Developer/Xcode/DerivedData/Jparse-heknsvlbknssribatbwgkuefjoja/Build/Products/Debug-iphonesimulator/Jparse.app/Jparse_armv7
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SBJSON", referenced from:
objc-class-ref in JparseViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I got JSON framework files from downloaded example. The examples are working perfectly, but my project showing above errors.
Symbol(s) not found for architecture i386
The above error occurs in the following situation:
You were trying to run your application in the iPhone/iPad Simulator
The library was only built to run on the physical devices, and does not support being run in the Simulator.
To resolve this, you either need to add i386 to the Valid Architectures of the SBJSON library build target, or test your application using a physical device.
You didn't add the SBJSON.m file to your target. Check the properties panel for this file, and there should be a checkbox indicating which target it is assigned to. You may have simply forgotten to copy SBJSON.m into your project at all.
go to Projectapp -> Buildphases -> compileSources
here to add all .m files of JSON with + icon. problem will be resolved