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"
Related
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ʀ.
I am getting this error when I try to archive my React Native project.
I am able to run debug/release on iPhone and Simulator. react-native run works as well.
I have read through similar issues and tried:
Make sure I'm opening xcworkspace instead of xcodeproj.
Deleting Podfile.lock and running pod install and cleaning project.
Setting Build Active Architecture Only to Yes
Build output:
ld: warning: directory not found for option '-L/Users/mans/Library/Developer/Xcode/DerivedData/teacher-gkqevnksdssljsbrniwvxaoxiwhi/Build/Intermediates.noindex/ArchiveIntermediates/teacher/BuildProductsPath/Release-iphoneos/DoubleConversion'
ld: warning: directory not found for option '-L/Users/mans/Library/Developer/Xcode/DerivedData/teacher-gkqevnksdssljsbrniwvxaoxiwhi/Build/Intermediates.noindex/ArchiveIntermediates/teacher/BuildProductsPath/Release-iphoneos/Folly'
ld: warning: directory not found for option '-L/Users/mans/Library/Developer/Xcode/DerivedData/teacher-gkqevnksdssljsbrniwvxaoxiwhi/Build/Intermediates.noindex/ArchiveIntermediates/teacher/BuildProductsPath/Release-iphoneos/Google-Maps-iOS-Utils'
ld: warning: directory not found for option '-L/Users/mans/Library/Developer/Xcode/DerivedData/teacher-gkqevnksdssljsbrniwvxaoxiwhi/Build/Intermediates.noindex/ArchiveIntermediates/teacher/BuildProductsPath/Release-iphoneos/React'
ld: warning: directory not found for option '-L/Users/mans/Library/Developer/Xcode/DerivedData/teacher-gkqevnksdssljsbrniwvxaoxiwhi/Build/Intermediates.noindex/ArchiveIntermediates/teacher/BuildProductsPath/Release-iphoneos/glog'
ld: warning: directory not found for option '-L/Users/mans/Library/Developer/Xcode/DerivedData/teacher-gkqevnksdssljsbrniwvxaoxiwhi/Build/Intermediates.noindex/ArchiveIntermediates/teacher/BuildProductsPath/Release-iphoneos/react-native-google-maps'
ld: warning: directory not found for option '-L/Users/mans/Library/Developer/Xcode/DerivedData/teacher-gkqevnksdssljsbrniwvxaoxiwhi/Build/Intermediates.noindex/ArchiveIntermediates/teacher/BuildProductsPath/Release-iphoneos/react-native-maps'
ld: warning: directory not found for option '-L/Users/mans/Library/Developer/Xcode/DerivedData/teacher-gkqevnksdssljsbrniwvxaoxiwhi/Build/Intermediates.noindex/ArchiveIntermediates/teacher/BuildProductsPath/Release-iphoneos/react-native-video'
ld: warning: directory not found for option '-L/Users/mans/Library/Developer/Xcode/DerivedData/teacher-gkqevnksdssljsbrniwvxaoxiwhi/Build/Intermediates.noindex/ArchiveIntermediates/teacher/BuildProductsPath/Release-iphoneos/yoga'
ld: library not found for -lDoubleConversion
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Did you try turning it off and on again? Try rebooting your Mac, often these problems go away.
Also try deleting the whole contents of DerivedData, in your case:
rm -rf /Users/mans/Library/Developer/Xcode/DerivedData/*
Does it work with some fresh project you get somewhere from GitHub?
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.
this is the error message I receive when attempting to run the application after installing the pod file to the project, I have tried to uninstall/reinstall the pods from the project, update the pods, and set the build location to custom "relative to project" nothing works. Below is the message I receive in the console.
ld: warning: directory not found for option
'-F/Users/omaraleisa/Desktop/Chat-iOS11-master/Build/Products/Debug-iphonesimulator/ChameleonFramework' ld: warning: directory not found for option
'-F/Users/omaraleisa/Desktop/Chat-iOS11-master/Build/Products/Debug-iphonesimulator/GTMSessionFetcher'
ld: warning: directory not found for option
'-F/Users/omaraleisa/Desktop/Chat-iOS11-master/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac'
ld: warning: directory not found for option
'-F/Users/omaraleisa/Desktop/Chat-iOS11-master/Build/Products/Debug-iphonesimulator/SVProgressHUD'
ld: framework not found ChameleonFramework
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