Xcode Apple mach-o linker (id) error after creating AdHoc scheme - ios

I am getting Apple mach-o linker error after creating AdHoc scheme. All I did was make a duplicate of release scheme (I did not have Adhoc in Code signing Identity), assigned build configuration as AdHoc by editing scheme and chose AdHoc provisioning profile from the Build Settings. Everything works fine in release and debug builds. What's wrong?
Error:
Ld
/Users/Jenaveve/Library/Developer/Xcode/DerivedData/MyApp-ahialnkqxudemgdnsueegfkiqmpd/Build/Intermediates/MyApp.build/AdHoc-iphoneos/MyApp.build/Objects-normal/arm64/MyApp
normal arm64
cd /Users/Jenaveve/NachiketApps/iOS/MyApp_ios
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 arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk
-L/Users/Jenaveve/Library/Developer/Xcode/DerivedData/MyApp-ahialnkqxudemgdnsueegfkiqmpd/Build/Products/AdHoc-iphoneos
-L/Users/Jenaveve/NachiketApps/iOS/MyApp_ios/Pods/GoogleAnalytics/Libraries
-L/Users/Jenaveve/NachiketApps/iOS/MyApp_ios/Pods/ParseCrashReporting -L/Users/Jenaveve/NachiketApps/iOS/MyApp_ios -L/Users/Jenaveve/NachiketApps/iOS/MyApp_ios/GoogleConversionTrackingSDK-iOS-3.2.0
-L/Users/Jenaveve/NachiketApps/iOS/MyApp_ios/GoogleConversionTrackingSDK-iOS-3.4.0
-F/Users/Jenaveve/Library/Developer/Xcode/DerivedData/MyApp-ahialnkqxudemgdnsueegfkiqmpd/Build/Products/AdHoc-iphoneos
-F/Users/Jenaveve/NachiketApps/iOS/MyApp_ios/Pods/Crashlytics/iOS -F/Users/Jenaveve/NachiketApps/iOS/MyApp_ios/Pods/Fabric/iOS -F/Users/Jenaveve/NachiketApps/iOS/MyApp_ios/Pods/FirebaseAnalytics/Frameworks/frameworks
-F/Users/Jenaveve/NachiketApps/iOS/MyApp_ios/Pods/FirebaseInstanceID/Frameworks/frameworks
-F/Users/Jenaveve/NachiketApps/iOS/MyApp_ios/Pods/Google/Frameworks -F/Users/Jenaveve/NachiketApps/iOS/MyApp_ios/Pods/GoogleAppUtilities/Frameworks
-F/Users/Jenaveve/NachiketApps/iOS/MyApp_ios/Pods/GoogleAuthUtilities/Frameworks
-F/Users/Jenaveve/NachiketApps/iOS/MyApp_ios/Pods/GoogleInterchangeUtilities/Frameworks
-F/Users/Jenaveve/NachiketApps/iOS/MyApp_ios/Pods/GoogleNetworkingUtilities/Frameworks
-F/Users/Jenaveve/NachiketApps/iOS/MyApp_ios/Pods/GoogleSignIn/Frameworks
-F/Users/Jenaveve/NachiketApps/iOS/MyApp_ios/Pods/GoogleSymbolUtilities/Frameworks
-F/Users/Jenaveve/NachiketApps/iOS/MyApp_ios/Pods/GoogleUtilities/Frameworks
-F/Users/Jenaveve/NachiketApps/iOS/MyApp_ios -F/Users/Jenaveve/NachiketApps/iOS/MyApp_ios/HockeySDKCrashOnly -F/Users/Jenaveve/NachiketApps/iOS/MyApp_ios/HockeySDK-iOS/HockeySDK.embeddedframework
-F/Users/Jenaveve/NachiketApps/iOS/MyApp_ios/HockeySDK-iOS/HockeySDKCrashOnly
-filelist /Users/Jenaveve/Library/Developer/Xcode/DerivedData/MyApp-ahialnkqxudemgdnsueegfkiqmpd/Build/Intermediates/MyApp.build/AdHoc-iphoneos/MyApp.build/Objects-normal/arm64/MyApp.LinkFileList
-Xlinker -rpath -Xlinker #executable_path/Frameworks -miphoneos-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/Jenaveve/Library/Developer/Xcode/DerivedData/MyApp-ahialnkqxudemgdnsueegfkiqmpd/Build/Intermediates/MyApp.build/AdHoc-iphoneos/MyApp.build/Objects-normal/arm64/MyApp_lto.o
-fobjc-arc -fobjc-link-runtime -ObjC -ObjC -lBolts -lGoogleAnalytics -lMZAppearance -lMZFormSheetPresentationController -lParse -lParseCrashReporting -lParseCrashReportingLib -lc++ -lsqlite3 -lstdc++ -lstdc++.6 -lz -framework AdSupport -framework AddressBook -framework AssetsLibrary -framework AudioToolbox -framework CFNetwork -framework CoreData -framework CoreFoundation -framework CoreGraphics -framework CoreLocation -framework CoreMotion -framework CoreText -framework Crashlytics -framework Fabric -framework FirebaseAnalytics -framework FirebaseInstanceID -framework Foundation -framework GGLCore -framework GGLSignIn -framework GoogleAppUtilities -framework GoogleAuthUtilities -framework GoogleInterchangeUtilities -framework
GoogleNetworkingUtilities -framework GoogleSignIn -framework
GoogleSymbolUtilities -framework GoogleUtilities -framework MessageUI
-framework QuartzCore -framework SafariServices -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -weak_framework Accounts -weak_framework Social -framework MessageUI -framework CoreFoundation -framework FBSDKShareKit -framework UIKit -framework FBSDKLoginKit -framework Accounts -framework Social -framework SystemConfiguration -framework SafariServices -framework AddressBook -framework CoreBluetooth -framework Accelerate -framework
AdSupport -lsqlite3 -framework QuartzCore -framework AudioToolbox
-framework GoogleMaps -lstdc++.6 -lz -framework StoreKit -framework Security -framework MobileCoreServices -framework CoreLocation
-framework CoreGraphics -framework CFNetwork -lsqlite3.0 -lc++ -framework FBSDKCoreKit -licucore -framework MapKit -lGoogleConversionTracking -framework GLKit -framework OpenGLES -framework ImageIO -framework CoreData -framework AVFoundation -lPods-MyApp -Xlinker -dependency_info -Xlinker /Users/Jenaveve/Library/Developer/Xcode/DerivedData/MyApp-ahialnkqxudemgdnsueegfkiqmpd/Build/Intermediates/MyApp.build/AdHoc-iphoneos/MyApp.build/Objects-normal/arm64/MyApp_dependency_info.dat
-o /Users/Jenaveve/Library/Developer/Xcode/DerivedData/MyApp-ahialnkqxudemgdnsueegfkiqmpd/Build/Intermediates/MyApp.build/AdHoc-iphoneos/MyApp.build/Objects-normal/arm64/MyApp

In order to clean the derived data you have to do the following steps:
Open Xcode
open your project
Clicke the "Xcode" in your top left corner while you are in your project
On the drop down select the "Preferences..."
A new window appeares. You will go to the far right to the tab "Locations" and click it.
Now you will see a label named: "Derived Data:" "Default". Under it is a grey text which starts with "/Users..." and an arrow sign. Click the little grey arrow.
You will now be presented with a Finder window named "Xcode". Inside of it is a Folder named "DerivedData". Double click and open it.
Delete everything inside it.
Rebuild your project (Clean and Build).
Your error should disappear. You can repeat these steps from time to time since Xcode doesn't automatically delete that junk.

I solved it by deleting my scheme and making a new one for AdHoc. Don't know the reason behind this..

Related

Xcode 10b5 - duplicate symbol linker error, can't compile with Crashlytics

I'm trying to compile my project, which has both Firebase, Crashlytics/Fabric, and a bunch of other stuff, with Xcode 10 beta 5.
It fails during linking with these errors:
Ld /Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/appname.app/appname normal arm64 (in target: appname)
cd /Users/Username/iPhone-dev/appname
export IPHONEOS_DEPLOYMENT_TARGET=9.0
/Users/Username/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Users/Username/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk -L/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/AFNetworking -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/Actions -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/AppAuth -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/Bluepeer -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/Bolts -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/CocoaAsyncSocket -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/CocoaLumberjack -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/Color-Picker-for-iOS -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/DNPWPSPrinter -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/DataCompression -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/EOSFTPServer -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/FBSDKCoreKit -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/FBSDKLoginKit -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/FastttCamera -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/FirebaseAuth -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/FirebaseCore -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/FirebaseDatabase -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/FirebaseStorage -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/GTMAppAuth -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/GTMSessionFetcher -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/Gloss -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/GoldRaccoon -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/GoogleToolboxForMac -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/HHServices -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/JPSVolumeButtonHandler -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/M13BadgeView -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/ObjectiveDropboxOfficial -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/PhoneNumberKit -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/Protobuf -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/TPCircularBuffer -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/leveldb-library -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/nanopb -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/upnpx -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/xaphodObjCUtils -F/Users/Username/iPhone-dev/appname/Pods/Crashlytics/iOS -F/Users/Username/iPhone-dev/appname/Pods/Fabric/iOS -F/Users/Username/iPhone-dev/appname/Pods/FirebaseABTesting/Frameworks -F/Users/Username/iPhone-dev/appname/Pods/FirebaseAnalytics/Frameworks -F/Users/Username/iPhone-dev/appname/Pods/FirebaseDynamicLinks/Frameworks -F/Users/Username/iPhone-dev/appname/Pods/FirebaseInstanceID/Frameworks -F/Users/Username/iPhone-dev/appname/Pods/FirebaseRemoteConfig/Frameworks -F/Users/Username/iPhone-dev/appname/Pods/TwitterCore/iOS -F/Users/Username/iPhone-dev/appname/Pods/TwitterKit/iOS -F/Users/Username/iPhone-dev/appname/cascablecore-binaries/Binaries/iOS -filelist /Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Intermediates.noindex/appname.build/Debug-iphoneos/appname.build/Objects-normal/arm64/appname.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -Xlinker -rpath -Xlinker #loader_path/Frameworks -Xlinker -rpath -Xlinker #executable_path/Frameworks -miphoneos-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Intermediates.noindex/appname.build/Debug-iphoneos/appname.build/Objects-normal/arm64/appname_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -L/Users/Username/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Intermediates.noindex/appname.build/Debug-iphoneos/appname.build/Objects-normal/arm64/appname.swiftmodule -ObjC -lc++ -licucore -lsqlite3 -lz -framework AFNetworking -framework AVFoundation -framework Accounts -framework Actions -framework AppAuth -framework AssetsLibrary -framework Bluepeer -framework Bolts -framework CFNetwork -framework CocoaAsyncSocket -framework CocoaLumberjack -framework Color_Picker_for_iOS -framework CoreData -framework CoreGraphics -framework CoreMedia -framework CoreText -framework Crashlytics -framework DNPWPSPrinter -framework DataCompression -framework EOSFTPServer -framework FBSDKCoreKit -framework FBSDKLoginKit -framework Fabric -framework FastttCamera -framework FirebaseABTesting -framework FirebaseAnalytics -framework FirebaseAuth -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseDatabase -framework FirebaseDynamicLinks -framework FirebaseInstanceID -framework FirebaseNanoPB -framework FirebaseRemoteConfig -framework FirebaseStorage -framework Foundation -framework GTMAppAuth -framework GTMSessionFetcher -framework Gloss -framework GoldRaccoon -framework GoogleToolboxForMac -framework HHServices -framework JPSVolumeButtonHandler -framework M13BadgeView -framework MessageUI -framework MobileCoreServices -framework ObjectiveDropboxOfficial -framework PhoneNumberKit -framework Protobuf -framework QuartzCore -framework SafariServices -framework Security -framework Social -framework StoreKit -framework SystemConfiguration -framework TPCircularBuffer -framework TwitterCore -framework TwitterKit -framework UIKit -framework leveldb -framework nanopb -framework upnpx -framework xaphodObjCUtils -weak_framework WebKit -ObjC -lc++ -licucore -lsqlite3 -lz -lctemplate-ios -letpan-ios -lxml2 -lsasl2 -liconv -ltidy -lz -lc++ -lresolv -stdlib=libc++ -ObjC /Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/libMailCore-ios.a -framework SafariServices -framework CascableCore -framework Security -framework CFNetwork -framework MessageUI -framework StoreKit -framework GameKit -framework StopKit -framework Pods_appname -Xlinker -dependency_info -Xlinker /Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Intermediates.noindex/appname.build/Debug-iphoneos/appname.build/Objects-normal/arm64/appname_dependency_info.dat -o /Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/appname.app/appname
duplicate symbol l086 in:
/Users/Username/iPhone-dev/appname/Pods/Crashlytics/iOS/Crashlytics.framework/Crashlytics(CLSFileManager.o)
/Users/Username/iPhone-dev/appname/Pods/Crashlytics/iOS/Crashlytics.framework/Crashlytics(CLSInternalReport.o)
duplicate symbol l087 in:
/Users/Username/iPhone-dev/appname/Pods/Crashlytics/iOS/Crashlytics.framework/Crashlytics(CLSFileManager.o)
/Users/Username/iPhone-dev/appname/Pods/Crashlytics/iOS/Crashlytics.framework/Crashlytics(CLSInternalReport.o)
duplicate symbol l088 in:
/Users/Username/iPhone-dev/appname/Pods/Crashlytics/iOS/Crashlytics.framework/Crashlytics(CLSSettings.o)
/Users/Username/iPhone-dev/appname/Pods/Crashlytics/iOS/Crashlytics.framework/Crashlytics(CLSInternalReport.o)
....<many more omitted>
What's the trick to get Google Fabric / Crashlytics working with Xcode 10?
Edit: Thanks to all who have commented so far. What i've tried so far:
tried reinstalling the pods / clearing pod caches
tried cleaning build folder, then restarting xcode
tried playing with -ObjC linker flag. It does indeed look like this flag has something to do with the issue, but unfortunately I need this flag active as I use objective-c frameworks that have static categories on classes
Fixed for me with Xcode 10b6 (released this morning)!

No such fie or directory: 'JavaScript Core'

Help, this is driving me crazy. I was running out of space on my boot disk, so I moved most of my documents over to a second drive, including all my Xcode projects. Now, I need to fix an old app and make it updated for new iOS, and it won't build. The linker is giving this error message:
No such file or directory: 'JavaScript Core'
When I click on it, I get the details below. I have tried looking in the project build settings Linking section, the Other Linker Flags. It does include JavaScript, but isn't that needed if the app displays HTML pages in a browser view? I don't think I want to remove it. I also tried manually adding JavaScriptCore library in the Build Phases linked libraries, that did not remove the error. In between each and every change, I do a Clean then Build.
FYI, I also at one point moved my old hard drive to become the second, and installed a new boot drive. The old one is called "Macintosh HD" while the new one is called "Macintosh SSD" - so it's possible that some paths are still referring to the old location. I noticed that the paths are prefixed by $(PODS_ROOT), which evaluates to /Volumes/Macintosh HD/Documents/XCodeProjects....etc This is the old hard drive where the projects are currently. However, when they were first created, that used to be the boot (and only) drive.
Details of the error:
Ld
/Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Products/Debug-iphonesimulator/itsettings.app/itsettings
normal x86_64
cd "/Volumes/Macintosh HD/Documents/XCodeProjects/iPhone/ITSettings"
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 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk
-L/Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Products/Debug-iphonesimulator
-L/Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac
-L/Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Products/Debug-iphonesimulator/SBJson5
-L/Volumes/Macintosh\ HD/Documents/XCodeProjects/iPhone/ITSettings/ITSettings
-F/Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Products/Debug-iphonesimulator
-F/Volumes/Macintosh\ HD/Documents/XCodeProjects/iPhone/ITSettings/Pods/FirebaseAnalytics/Frameworks/frameworks
-F/Volumes/Macintosh\ HD/Documents/XCodeProjects/iPhone/ITSettings/Pods/FirebaseCore/Frameworks/frameworks
-F/Volumes/Macintosh\ HD/Documents/XCodeProjects/iPhone/ITSettings/Pods/FirebaseInstanceID/Frameworks/frameworks
-F/Volumes/Macintosh\ HD/Documents/XCodeProjects/iPhone/ITSettings/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks
-F/Volumes/Macintosh\ HD/Documents/XCodeProjects/iPhone/ITSettings/Pods/GoogleInterchangeUtilities/Frameworks/frameworks
-F/Volumes/Macintosh\ HD/Documents/XCodeProjects/iPhone/ITSettings/Pods/GoogleSymbolUtilities/Frameworks/frameworks
-filelist /Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Intermediates/itsettings.build/Debug-iphonesimulator/ITSettings.build/Objects-normal/x86_64/itsettings.LinkFileList
-mios-simulator-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Intermediates/itsettings.build/Debug-iphonesimulator/ITSettings.build/Objects-normal/x86_64/itsettings_lto.o
-Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lGoogleToolboxForMac -lSBJson5 -lc++ -lsqlite3 -lz -framework AVFoundation -framework AddressBook -framework AudioToolbox -framework
CoreGraphics -framework CoreMedia -framework CoreMotion -framework
CoreTelephony -framework CoreVideo -framework FirebaseAnalytics
-framework FirebaseCore -framework FirebaseInstanceID -framework GLKit -framework GoogleInterchangeUtilities -framework GoogleMobileAds -framework GoogleSymbolUtilities -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework
StoreKit -framework SystemConfiguration -weak_framework AdSupport
-weak_framework JavaScriptCore -weak_framework SafariServices -weak_framework WebKit -ObjC -lGoogleToolboxForMac -lc++ -lz -framework AVFoundation -framework AddressBook -framework AudioToolbox -framework CoreGraphics -framework CoreMedia -framework CoreMotion -framework CoreTelephony -framework CoreVideo -framework FirebaseAnalytics -framework FirebaseCore -framework
FirebaseInstanceID -framework GLKit -framework
GoogleInterchangeUtilities -framework GoogleMobileAds -framework
GoogleSymbolUtilities -framework MediaPlayer -framework MessageUI
-framework MobileCoreServices -framework OpenGLES -framework StoreKit -framework SystemConfiguration -weak_framework -weak_framework JavaScriptCore -weak_framework SafariServices -weak_framework WebKit
-Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Intermediates/itsettings.build/Debug-iphonesimulator/ITSettings.build/itsettings.app.xcent
-framework JavaScriptCore -lz.1 -framework SystemConfiguration -framework StoreKit -framework MessageUI -framework EventKitUI -framework EventKit -framework CoreGraphics -framework AVFoundation -framework AudioToolbox -framework AdSupport -framework GoogleMobileAds -framework UIKit -framework Foundation
-lPods-ITSettings -Xlinker -dependency_info -Xlinker /Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Intermediates/itsettings.build/Debug-iphonesimulator/ITSettings.build/Objects-normal/x86_64/itsettings_dependency_info.dat
-o /Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Products/Debug-iphonesimulator/itsettings.app/itsettings
clang: error: no such file or directory: 'JavaScriptCore'
I had the same, or similar at least, problem and the fix was to go over my linker flags in the build settings very carefully. I found that in one of my build configurations I had an incomplete linker flag value that expected something to follow it. As it turns out, when it outputs the command the next word was the framework, and so it thought it could not find a folder with that name (the flag that was incomplete should have been followed by a folder name). In short, review all your linker flags in detail and make sure they are complete.

Xcode 7.2.1: Library build is not build 'lHexColor'

Xcode Library link is not working...
Build problem:
Ld /Users/abraaobarroslacerda/Library/Developer/Xcode/DerivedData/ios.Bynd-dsufpmwjucukmkctjyybhovuitqt/Build/Products/Debug-iphoneos/ios.Bynd.app/ios.Bynd normal arm64
cd /Users/abraaobarroslacerda/Documents/Urbbox/bynd/workspace/ios.Bynd
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/abraaobarroslacerda/Library/Developer/Xcode/DerivedData/ios.Bynd-dsufpmwjucukmkctjyybhovuitqt/Build/Products/Debug-iphoneos -L/Users/abraaobarroslacerda/Documents/Urbbox/bynd/workspace/ios.Bynd/build/Debug-iphoneos -F/Users/abraaobarroslacerda/Library/Developer/Xcode/DerivedData/ios.Bynd-dsufpmwjucukmkctjyybhovuitqt/Build/Products/Debug-iphoneos -F/Users/abraaobarroslacerda/Documents/Urbbox/bynd/workspace/ios.Bynd/Pods/Crashlytics/iOS -F/Users/abraaobarroslacerda/Documents/Urbbox/bynd/workspace/ios.Bynd/Pods/Fabric/iOS -F/Users/abraaobarroslacerda/Documents/Urbbox/bynd/workspace/ios.Bynd/Pods/TwitterCore/iOS -F/Users/abraaobarroslacerda/Documents/Urbbox/bynd/workspace/ios.Bynd/ios.Bynd/parse -F/Users/abraaobarroslacerda/Documents/Urbbox/bynd/workspace/ios.Bynd -F/Users/abraaobarroslacerda/Documents/Urbbox/bynd/workspace/ios.Bynd/FacebookSDK -filelist /Users/abraaobarroslacerda/Library/Developer/Xcode/DerivedData/ios.Bynd-dsufpmwjucukmkctjyybhovuitqt/Build/Intermediates/ios.Bynd.build/Debug-iphoneos/ios.Bynd.build/Objects-normal/arm64/ios.Bynd.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -miphoneos-version-min=9.1 -dead_strip -ObjC -lHexColors -lMixpanel -lPDTSimpleCalendar -lTSMessages -lc++ -licucore -lz -framework Accelerate -framework Accounts -framework CoreData -framework CoreGraphics -framework CoreTelephony -framework Crashlytics -framework Fabric -framework Foundation -framework QuartzCore -framework Security -framework Social -framework SystemConfiguration -framework TwitterCore -framework UIKit -ObjC -framework Accelerate -ObjC -lHexColors -lMixpanel -lPDTSimpleCalendar -lTSMessages -lc++ -licucore -lz -framework Accelerate -framework Accounts -framework CoreData -framework CoreGraphics -framework CoreTelephony -framework Crashlytics -framework Fabric -framework Foundation -framework QuartzCore -framework Security -framework Social -framework SystemConfiguration -framework TwitterCore -framework UIKit /Users/abraaobarroslacerda/Documents/Urbbox/bynd/workspace/ios.Bynd -fobjc-arc -fobjc-link-runtime -framework UIKit -framework SystemConfiguration -framework QuartzCore -framework Foundation -framework CoreTelephony -framework CoreGraphics -lHexColors -framework Accelerate -framework Bolts -framework Social -framework Accounts -lstdc++.6 -framework StoreKit -framework Parse -framework Security -framework MobileCoreServices -framework CFNetwork -framework MapKit -lsqlite3 -lz -framework CoreLocation -framework ParseCrashReporting -framework AudioToolbox -framework Parse -framework ParseCrashReporting -framework ParseUI -lPods-ios.Bynd -Xlinker -dependency_info -Xlinker /Users/abraaobarroslacerda/Library/Developer/Xcode/DerivedData/ios.Bynd-dsufpmwjucukmkctjyybhovuitqt/Build/Intermediates/ios.Bynd.build/Debug-iphoneos/ios.Bynd.build/Objects-normal/arm64/ios.Bynd_dependency_info.dat -o /Users/abraaobarroslacerda/Library/Developer/Xcode/DerivedData/ios.Bynd-dsufpmwjucukmkctjyybhovuitqt/Build/Products/Debug-iphoneos/ios.Bynd.app/ios.Bynd
ld: warning: directory not found for option '-L/Users/abraaobarroslacerda/Documents/Urbbox/bynd/workspace/ios.Bynd/build/Debug-iphoneos'
ld: library not found for -lHexColors
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My PodFile:
target 'ios.Bynd' do
pod 'PDTSimpleCalendar', '~> 0.9.1'
pod 'Mixpanel'
pod 'TSMessages'
pod 'Fabric'
pod 'TwitterCore'
pod 'Crashlytics'
end
target 'ios.ByndTests' do
pod 'Parse'
pod 'Fabric'
pod 'ActionSheetPicker-3.0'
end
Someone can give advisers how to dix this problem?
Try to go in the build settings of your project, look for other linker flags and remove every entries with -l"pod name". They are old CocoaPods entries.

Linker error exit code 1

I can usually figure out these issues but I just haven't been able to figure this one out, any help?
Ld /Users/nickporter/Library/Developer/Xcode/DerivedData/packageTracker-eacmyzjvxkncgxaugoxuxlnmpsgb/Build/Intermediates/packageTracker.build/Debug-iphoneos/packageTracker.build/Objects-normal/armv7/packageTracker normal armv7
cd /Users/nickporter/Developer/packageTracker
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 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk -L/Users/nickporter/Library/Developer/Xcode/DerivedData/packageTracker-eacmyzjvxkncgxaugoxuxlnmpsgb/Build/Products/Debug-iphoneos -F/Users/nickporter/Library/Developer/Xcode/DerivedData/packageTracker-eacmyzjvxkncgxaugoxuxlnmpsgb/Build/Products/Debug-iphoneos -F/Users/nickporter/Developer/packageTracker/packageTracker -filelist /Users/nickporter/Library/Developer/Xcode/DerivedData/packageTracker-eacmyzjvxkncgxaugoxuxlnmpsgb/Build/Intermediates/packageTracker.build/Debug-iphoneos/packageTracker.build/Objects-normal/armv7/packageTracker.LinkFileList -Xlinker -rpath -Xlinker #executable_path/Frameworks -miphoneos-version-min=8.0 -dead_strip -ObjC -lAFNetworking -lAPTimeZones -lAftership-iOS-SDK -lCSNotificationView -lCTFeedback -lDateTools -lMCSwipeTableViewCell -lMMMaterialDesignSpinner -lMTDates -lNSDate+TimeAgo -lNSTimeZone-CountryCode -lRestKit -lSOCKit -lSVGeocoder -lSVPullToRefresh -lSVPulsingAnnotationView -lSVWebViewController -framework CFNetwork -framework CoreData -framework CoreGraphics -framework CoreLocation -framework MapKit -framework MessageUI -framework MobileCoreServices -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit -lAFNetworking -lAPTimeZones -lAftership-iOS-SDK -lCSNotificationView -lCTFeedback -lDateTools -lMCSwipeTableViewCell -lMMMaterialDesignSpinner -lMTDates -lNSDate+TimeAgo -lNSTimeZone-CountryCode -lRestKit -lSOCKit -lSVGeocoder -lSVPullToRefresh -lSVPulsingAnnotationView -lSVWebViewController -framework CFNetwork -framework CoreData -framework CoreGraphics -framework CoreLocation -framework MapKit -framework MessageUI -framework MobileCoreServices -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit -fobjc-arc -fobjc-link-runtime -framework MobileCoreServices -framework QuartzCore -framework Accounts -framework Social -lsqlite3 -lz -framework SystemConfiguration -framework Parse -framework Security -framework CoreLocation -framework CoreGraphics -framework CFNetwork -framework AudioToolbox -framework CoreData -lPods-packageTracker -framework Bolts -Xlinker -dependency_info -Xlinker /Users/nickporter/Library/Developer/Xcode/DerivedData/packageTracker-eacmyzjvxkncgxaugoxuxlnmpsgb/Build/Intermediates/packageTracker.build/Debug-iphoneos/packageTracker.build/Objects-normal/armv7/packageTracker_dependency_info.dat -o /Users/nickporter/Library/Developer/Xcode/DerivedData/packageTracker-eacmyzjvxkncgxaugoxuxlnmpsgb/Build/Intermediates/packageTracker.build/Debug-iphoneos/packageTracker.build/Objects-normal/armv7/packageTracker
ld: library not found for -lAFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Where is liphone-lib in a unity generated xcode project?

I am having this strange issue ever since I upgraded my unity. When I build the generated Xcode project I get the following error:
Ld /Users/Ali/Library/Developer/Xcode/DerivedData/Unity-iPhone-arybbykagdcklhdbmekvfmdgxmax/Build/Products/pxelfall.app/pxelfall normal armv7
cd /Users/Ali/Desktop/Pixel.Fall.iOS-soomla-rollback
export IPHONEOS_DEPLOYMENT_TARGET=5.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk
-L/Users/Ali/Library/Developer/Xcode/DerivedData/Unity-iPhone-arybbykagdcklhdbmekvfmdgxmax/Build/Products
-L/Users/Ali/SweetPixel/Pixel.Fall/Pixel.Fall/Assets/Facebook/Editor/iOS/FacebookSDK
-L/Users/Ali/Desktop/Pixel.Fall.iOS-soomla-rollback
-L\"/Users/Ali/Desktop/Pixel.Fall.iOS-soomla-rollback/Libraries\"
-L/Users/Ali/Desktop/Pixel.Fall.iOS-soomla-rollback/Libraries
-F/Users/Ali/Library/Developer/Xcode/DerivedData/Unity-iPhone-arybbykagdcklhdbmekvfmdgxmax/Build/Products
-F/Users/Ali/Desktop/Pixel.Fall.iOS-soomla-rollback/Libraries
-F/Users/Ali/Desktop/Pixel.Fall.iOS-soomla-rollback
-filelist /Users/Ali/Library/Developer/Xcode/DerivedData/Unity-iPhone-arybbykagdcklhdbmekvfmdgxmax/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/pxelfall.LinkFileList
-dead_strip -weak_framework CoreMotion -weak-lSystem -stdlib=libstdc++ -fobjc-link-runtime -miphoneos-version-min=5.0 -lz -lc++ -framework CoreText -framework CoreTelephony -framework CoreData
-framework AssetsLibrary -framework AddressBook -framework Foundation
-framework GooglePlayGames -framework UIKit -framework GoogleOpenSource
-framework OpenGLES -framework QuartzCore -framework OpenAL -liconv.2
-liPhone-lib -framework AudioToolbox -framework CFNetwork -framework MediaPlayer -framework CoreLocation
-framework SystemConfiguration -weak_framework iAd -framework CoreMedia -framework CoreVideo
-framework GooglePlus -weak_framework AVFoundation -framework CoreGraphics
-weak_framework CoreMotion -weak_framework GameKit -lGoogleAdMobAds -weak-lsqlite3.0 /Users/Ali/SweetPixel/Pixel.Fall/Pixel.Fall/Assets/Facebook/Editor/iOS/FacebookSDK/FacebookSDK.a
-weak_framework Accounts -weak_framework AdSupport -weak_framework Social -weak_framework Security -Xlinker -dependency_info
-Xlinker /Users/Ali/Library/Developer/Xcode/DerivedData/Unity-iPhone-arybbykagdcklhdbmekvfmdgxmax/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/pxelfall_dependency_info.dat
-o /Users/Ali/Library/Developer/Xcode/DerivedData/Unity-iPhone-arybbykagdcklhdbmekvfmdgxmax/Build/Products/pxelfall.app/pxelfall
ld: warning: directory not found for option '-L"/Users/Ali/Desktop/Pixel.Fall.iOS-soomla-rollback/Libraries"' ld: library not found for -liPhone-lib clang: error: linker command failed with exit code 1 (use -v to see invocation)
I cannot find liphone-lib anywhere in the project. I have been able to build this project effortlessly before. I am using unity 4.5.5 and Xcode 6.1
Please help
Ok I managed to fix it. I had updated to unity 4.5 so it broke my project. I deleted everything and rebuilt again by overwriting old files. That fixed the error.

Resources