XCode giving me following "Apple Mach-O Linker" Warnings - ios

ld: warning: directory not found for option '-L/Hagile /Workspace/Github/MyApp/Code/Libraries/FacebookSDK/build/facebook-ios-sdk.build/Release-iphoneos/facebook-ios-sdk.build/Objects-normal/armv7'
ld: warning: directory not found for option '-L/Hagile /Workspace/Github/MyApp/Code/Libraries/FacebookSDK/build/facebook-ios-sdk.build/Release-iphoneos/facebook-ios-sdk.build/Objects-normal/armv7s'
ld: warning: directory not found for option '-L/Hagile /Workspace/Github/MyApp/Code/Libraries/FacebookSDK/build/Release-iphoneos'
ld: warning: directory not found for option '-L/Hagile /Workspace/Github/MyApp/Code/Libraries/FacebookSDK/build/Release-iphonesimulator'
ld: warning: directory not found for option '-L/Hagile /Workspace/Github/MyApp/Code/Libraries/FacebookSDK/build/Release-universal'
ld: warning: directory not found for option '-L/Hagile /Workspace/Github/MyApp/Code/build/Debug-iphoneos'
ld: warning: directory not found for option '-L/Hagile /Workspace/Github/MyApp/Code/build/Release-iphoneos'
ld: warning: directory not found for option '-F/Hagile /Workspace/Github/MyApp/Code/Libraries/FacebookSDK/build'
ld: warning: directory not found for option '-F/Hagile /Workspace/Github/MyApp/Code/Pods/NewRelicAgent/NewRelic_iOS_Agent_5.2.1'
I am getting above warnings in these specifications:
XCode v.6.3.
iOS Simulator v.8.3.0.
OSX v.10.10.3.
Using CocoaPods too.
How to prevent XCode from generating this warnings?

do like
targets -> build settings -->'Framework search Paths' and 'Library Search Paths' delete the particular path which one you want/which one not available and add again.
for more reference

Related

** BUILD FAILED ** on migrate android to iOS

I started a project on android, when i finished on android version, i started developing for ios on Flutter. But I found some errors that I can not solve in any way, here are the errors:
I tried flutter clean, pod update, pod install, but not this work for me
And now error on debug:
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/FBSDKCoreKit'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/FBSDKLoginKit'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/FirebaseAuth'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/FirebaseCore'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/FirebaseDatabase'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/FirebaseFirestore'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/FirebaseInstanceID'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/FirebaseStorage'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/GTMSessionFetcher'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/GoogleToolboxForMac'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/Protobuf'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/cloud_firestore'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/firebase_auth'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/firebase_core'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/firebase_database'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/firebase_storage'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/flutter_facebook_login'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/gRPC-C++'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/gRPC-Core'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/geolocator'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/google_api_availability'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/google_maps_flutter'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/google_sign_in'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/image_picker'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/leveldb-library'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/location_permissions'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/nanopb'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/onesignal_flutter'
ld: warning: directory not found for option '-F/Users/every/AndroidStudioProjects/clinica_sorriso/build/ios/Debug-iphonesimulator/url_launcher'
ld: framework not found Bolts
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Could not build the application for the simulator.
Error launching application on iPhone Xʀ.

React Native can not build and run by Xcode10

New react native project can react-native run-ios to run on device but can not run by xcode 10.
It gets the error when I build the project.
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/DoubleConversion'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/Folly'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/React-Core'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/React-DevSupport'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/React-RCTActionSheet'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/React-RCTAnimation'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/React-RCTBlob'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/React-RCTImage'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/React-RCTLinking'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/React-RCTNetwork'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/React-RCTSettings'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/React-RCTText'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/React-RCTVibration'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/React-RCTWebSocket'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/React-cxxreact'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/React-fishhook'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/React-jsi'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/React-jsiexecutor'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/React-jsinspector'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/glog'
ld: warning: directory not found for option '-L/Users/viatick/Library/Developer/Xcode/DerivedData/BMSHelper-ehajbfildwyjzqgtszurmsvheorm/Build/Products/Debug-iphoneos/yoga'
ld: library not found for -lDoubleConversion
I need to add some native modules in ios but now I get the problem with building the project in xcode10.
As I know, the ios project uses cocoapods then I try deleting the podfile.lock and run pod install again but it did not work.
I also tried delete node_modules folder and run yarn install again but still get problem.
I expect to build it and can run from xcode. Now it only can run by command react-native run-ios
Make sure you have opened "projName.workspace" ,then select your project goto "General" tab -> "prjtNameTests" then select host application "yourproject"

XCode Not build my project

I'am using React-Native and react-native-maps but if i want to build it will build failed. Errors is "Apple Mach-O Linker Error Group"
Error:
ld: warning: directory not found for option '-L/Users/mrkacan/Library/Developer/Xcode/DerivedData/tracis-hckbanztjtfhnresvxragwaciwlc/Build/Products/Release-iphonesimulator/DoubleConversion'
ld: warning: directory not found for option '-L/Users/mrkacan/Library/Developer/Xcode/DerivedData/tracis-hckbanztjtfhnresvxragwaciwlc/Build/Products/Release-iphonesimulator/Folly'
ld: warning: directory not found for option '-L/Users/mrkacan/Library/Developer/Xcode/DerivedData/tracis-hckbanztjtfhnresvxragwaciwlc/Build/Products/Release-iphonesimulator/Google-Maps-iOS-Utils'
ld: warning: directory not found for option '-L/Users/mrkacan/Library/Developer/Xcode/DerivedData/tracis-hckbanztjtfhnresvxragwaciwlc/Build/Products/Release-iphonesimulator/React'
ld: warning: directory not found for option '-L/Users/mrkacan/Library/Developer/Xcode/DerivedData/tracis-hckbanztjtfhnresvxragwaciwlc/Build/Products/Release-iphonesimulator/glog'
ld: warning: directory not found for option '-L/Users/mrkacan/Library/Developer/Xcode/DerivedData/tracis-hckbanztjtfhnresvxragwaciwlc/Build/Products/Release-iphonesimulator/react-native-google-maps'
ld: warning: directory not found for option '-L/Users/mrkacan/Library/Developer/Xcode/DerivedData/tracis-hckbanztjtfhnresvxragwaciwlc/Build/Products/Release-iphonesimulator/react-native-maps'
ld: warning: directory not found for option '-L/Users/mrkacan/Library/Developer/Xcode/DerivedData/tracis-hckbanztjtfhnresvxragwaciwlc/Build/Products/Release-iphonesimulator/yoga'
ld: library not found for -lDoubleConversion
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Edit:
set Build Active architecture Only to Yes
and add Google maps library its worked!
Please close the xcode project, and open the .xcworkspace file (with white XCode icon) and build your project, as it is required by any project that use Pods.

Can someone help me fix this error in Swift "Apple Mach-O Linker Error?

"Linker command failed with exit code 1(use -v to invocation)".
I don't understand what that means and not sure where to go to fix it. I looked at solutions in stackoverflow but none of them are working for me. I cleaned the project also but still not getting rid of the error. Please help.
EDIT
ld: warning: directory not found for option '-
L/Users/welch/Downloads/Flurry'
ld: warning: directory not found for option '-LiPhone'
ld: warning: directory not found for option '-LSDK'
ld: warning: directory not found for option '-LviPhone'
ld: warning: directory not found for option '-L6.4.0'
ld: warning: directory not found for option '-L(1)/Flurry-iOS-6.4.0/Flurry'
ld: warning: directory not found for option '-L(1)/Flurry-iOS-6.4.0/FlurryAds'
ld: warning: directory not found for option '-F(1)'
ld: warning: directory not found for option '-F/Users/welch/Downloads/IOS-InApp'
ld: warning: directory not found for option '-FSDK-InApp-2.4.2'
ld: library not found for -lFlurryAds_6.4.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: warning: directory not found for option '-L/Users/welch/Downloads/Flurry'
ld: warning: directory not found for option '-LiPhone'
ld: warning: directory not found for option '-LSDK'
ld: warning: directory not found for option '-LviPhone'
ld: warning: directory not found for option '-L6.4.0'
ld: warning: directory not found for option '-L(1)/Flurry-iOS-6.4.0/Flurry'
ld: warning: directory not found for option '-L(1)/Flurry-iOS-6.4.0/FlurryAds'
ld: warning: directory not found for option '-F(1)'
ld: warning: directory not found for option '-F/Users/welch/Downloads/IOS-InApp'
ld: warning: directory not found for option '-FSDK-InApp-2.4.2'
ld: library not found for -lFlurryAds_6.4.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Click on Build Settings and under Library Search Paths, delete the paths.

How to fixed framework errors?

I am using lot of frameworks and pod files in my project like as Parse framework, Bolts Framework etc. and I have fixed all errors like parse.h file not found and any others but now I have some error also like ....
ld: warning: directory not found for option '-L/Crain/iOS Apps/crain_comm_ios/crainmagazine/common/Brightcove-3.0.1/Libraries'
ld: warning: directory not found for option '-L/Crain/iOS Apps/crain_comm_ios/frameworks/Flurry'
ld: warning: directory not found for option '-L/Crain/iOS Apps/crain_comm_ios'
ld: warning: directory not found for option '-F/Crain/iOS'
ld: warning: directory not found for option '-FApps/crain_comm_ios'
ld: warning: directory not found for option '-FApps/crain_comm_ios/frameworks'
ld: warning: directory not found for option '-FApps/crain_comm_ios/frameworks/Parse.framework'
ld: warning: directory not found for option '-F2'
ld: library not found for -lBCiOSSDK
clang: error: linker command failed with exit code 1 (use -v to see invocation)
so can you please tell me answer or any solution.
Some times the device that u compile the project is using 64bit. In debug mode the pod projects in some architecture aren't even complie, U should do this:
See my selections (set it to NO in both modes debug and release) :
warning: directory not found for option - you should fix that problems, linker could not find libraries, I think, you add add headers, but not libraries.

Resources