Apple Match-O Linker Error / clang: error: no such file or directory - Xcode 11

Related searches

I am working on a React Native application and whenever I try to build the application I am encountering these errors. I know there are many similar questions on this matter but the solutions given there are not working for me.

clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTRestart.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libReactNativePermissions.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNCPushNotificationIOS.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNReanimated.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNGestureHandler.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNMixpanel.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNCAsyncStorage.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTAnimation.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNVectorIcons.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNReactNativeDocViewer.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNFS.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libCodePush.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNDocumentPicker.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNImagePicker.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNI18n.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNBlur.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libART.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTVideo.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTActionSheet.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTGeolocation.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTImage.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTLinking.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTNetwork.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTSettings.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTText.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTVibration.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTWebSocket.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNSpinkit.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNSentry.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNGeocoder.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRCTContacts.a'
clang: error: no such file or directory: '/Users/FaisalHussain/Library/Developer/Xcode/DerivedData/blonk-eatmzbgmhuzfadfqxgotpiqwsapb/Build/Products/Debug-iphonesimulator/libRNOpenAppSettings.a'

I have searched but I am still stuck here. I have tried linking using react-native link. I have tried deleting the DerivedData folder for the application. Hence I have tried everything but can't seem to find a solution for this. So I turned to you guys please suggest any solution to fix this. Looking forward to your answers. Thank you in advance.

If you're using cocoapods, which is very likely the case given the recent versions of rn, try the following:

  1. Enter the ios folder.
$ cd ios
  1. If you don't have cocoapods installed, try running:
$ gem install cocoapods # Try with `sudo` if it doesn't work.

You may also consider locking the cocoapods version for your project, read more here.

  1. Run pod install.
  2. Then make sure to open the file with the .xcworkspace extension.

Finally, try building again.

Apple Mach-O Linker Error, no such file or directory: '`Ic++', Fixed it. It turns out that in the api I'm using I copied and pasted the other linker flags wrong. Making one of them be. `-lc++. When it should have� -Clearing derived data and restarting xcode. -Build architecture i removed armv6 and i386 -Build active architecture to "YES" -Searched lot of forums :( -Using relative paths in search paths. I can't fix this and cant move forward with anything.

I have seen that you upgraded from 0.48 to 0.59. That is a lot of versions and a lot of breaking changes to jump to.

My suggestion, create a new, clean 0.59.10 project and then slowly move all your code and dependencies to the new one. There are so many things to try and check. Probably your header search paths are wrong or outdated.

Perhaps a dependency does not support your RN version anymore. Or maybe you have a missing library in the linked-libraries list.

To be honest, too many things to try. Just do a new project, from scratch, and start adding your dependencies one by one.

Apple Mach-O Linker (ld) Error Group � Issue #258 � firebase , Here is the simple solution friends. For cocoapods you have to use the xcode workspace file not the xcode project file. 4 I am working on a React Native application and whenever I try to build the application I am encountering these errors. I know there are many similar questions on this matter but the solutions given there are not working for me.

Can you go through following steps:

Delete node_modules
Delete package-lock.json
Delete ios/Pods directory
Delete Podfile.lock file 

Then run following commands one by one from your terminal.

cd root/project directory
npm install 
cd ios/ && pod install && cd ..

Then try to build your app

react-native run-ios

Adding today extension target to xCode project causes an Apple , in xCode Try to build Logs xCode exception: ld: warning: directory not fo to xCode project causes an Apple Mach-O linker error for a library not found. ld: framework not found FMDB clang: error: linker command failed with exit c updated library from the vendor, or disable bitcode for this target. file� In Link Binary with Library, try removing the -tvOS.a file. Thats what I did and got it to build 👍 18 🎉 7

Apple Mach-O Linker Error, Greetings,After downloading the Sample files, and following instructions is not related to the original topic of this thread (Apple Mach-O Linker error in Unity). Concerning the original "Linker" error issue, this is solved in Vuforia 4.0 (which Library for C++ 11"; however, if you need to link such library, then:. Hey all, so I'm trying to use GCDAsyncSocket in a project and laid out my interface, hooked up my outlets and went to run it to make sure everything was ok (this is in Xcode 4, fyi). I get 16 Apple Mach-O Linker Errors all for GCDAsyncSocket: Undefined symbols for architecture x86_64

Xcode Clang Error, 3 with Clang or GCC and c++11 support". 違う環境に移した時の clang: error: linker command failed with exit code 1 (use -v to Run my project on my new Ipad I got the following error:Apple Mach-O Linker Error. 当导入的文件删除或者移动位置之后,xcode重新编译会报错clang: error: no such file or directory: " xxxxxx"� The Mac is running OS X v10.10.5, and it has Xcode v7.2.1 installed. Building the software as static libraries seems to work fine. But when the build tried to build dynamic libraries, I saw this error: ld: library not found for -ldylib1.10.5.o. clang: error: linker command failed with exit code 1 (use -v to see invocation)

rustc -O --target i386-intel-linux --lib -o main.o -c main.rs warning: missing crate link meta `name`, using `main` as default warning: missing crate link meta `vers`, using `0.0` as default ld -o main.bin -T linker.ld runtime.o main.o cat loader.bin main.bin > floppy.img qemu-system-i386 -fda floppy.img Could not access KVM kernel module: No

Comments
  • Why haven't you told your compiler where to look for libraries? The -L option.
  • @JesperJuhl ... where should I add the -L flag ? should i add it in the "Other Linker Flags" option in the build settings ?
  • I have no idea where you should add it in your IDE of choice. I'm only telling you what the argument you need to pass to the compiler should be. How you achieve that is your problem.
  • Yes add it to Other LInker Flags. It should work.
  • I have added -L to other linker flags in build settings but it did not work
  • I have already gone through this procedure before but it isn't working. Still getting the same errors. Any other suggestions ?
  • Maybe clearing the project and deleting the DerivedData folder before running the above instructions will help you.
  • I suspect creating a new project from scratch would be a pain because the previous developer has used lots of dependencies and code added to appdelagte.m for some of the dependencies. Also there is a issue with the package name there different package names for android and ios
  • As you wish, but in my experience migrating and jumping several versions like that, I always end up doing it from scratch.
  • What other option do i have ? If you can see in my question only those dependencies are giving this error. I have updated these dependencies as well