'RCTSwiftBridgeModule.h' file not found - ios

Getting this error 'RCTSwiftBridgeModule.h' file not found while building my react-native project for ios.
I have tried solutions mentioned in 'React/RCTBridgeModule.h' file not found but not successful to fix it.
Xcode: 10.3

I've resolved it by following these steps.
delete all node modules
clear the cache
delete DerivedData directory from ~/Library/Developer/Xcode
Reinstall the node_modules
Run the project

Related

Error (Xcode): 'Flutter/Flutter.h' file not found

Spent an hour trying to debug this error with stack overflow and GitHub. Any help appreciated. I tried the deleting iOS file and doing flutter clean and stuff.
Error (Xcode): 'Flutter/Flutter.h' file not found
/Users/ME/Desktop/fitnessapp/ios/Runner/GeneratedPluginRegistrant.h:9:8
Error (Xcode): failed to emit precompiled header
'/Users/ME/Library/Developer/Xcode/DerivedData/Runner-gzhzlsjpfyzcnebymqrpzjndrlbm/Build/Intermediates.noindex/PrecompiledHeaders/Runner-Bridging-Header-swift
_10LJ9PKPTMFQI-clang_1OUD1W5Q54EHI.pch' for bridging header'/Users/ME/Desktop/fitnessapp/ios/Runner/Runner-Bridging-Header.h'
Could not build the application for the simulator.
Error launching application on iPhone 13 Pro.
You could try to do this:
Backup Runner folder
Delete the ios folder
Go to a terminal and execute flutter create . in the flutter project folder
Paste your Runner folder back into the ios folder
pod deintegrate in the ios folder
pod install also in the ios folder
flutter clean in the flutter project folder
flutter pub get
flutter run
Please note that if you use firebase you need to re-insert the GoogleService-Info.plist file
Hope it helps, but if it still does not make sure you are in stable channel
After trying Edin's solution it still didn't work for me!
Make sure that for install builds only box is unchecked
for install builds only is unchecked

Xcode: unable to create symlink when archive iOS project

When I try to archive my project, Xcode fails with following error:
error: unable to create symlink at
'/.../ios/Release-iphoneos/MyApp.app'
I can build the project and also run it on an iPhone.
Has anyone an idea how to fix that?
Removing Release-iphoneos in your build folder might fix that issue.
The symlink command fails because you already have an existing file that the 'ln' command is trying to use. Solution is to delete the file. Conrad's solution works because he recommends deleting the directory containing the file (along with everything else).

Twitter kit iOS - No such file or directory

After doing a pod update command to update all of the pods in my project I am getting the following error for the Twitter kit:
/Users/user/iOS/Apps/myApp/Pods/TwitterKit/TwitterKit.framework/Versions/A/Resources/TwitterKitResources.bundle: No such file or directory
I have looked in the TwitterKit folder and this the correct file path for the Resources.bundle :
/Users/user/iOS/Apps/myApp/Pods/TwitterKit/iOS/TwitterKit.framework
I have tried :
Manually changing the directory of the resource.bundle by going on
identity and type tab and clicking on the folder icon to set the file
path.
Removing the pod and then installing it.
Cleaning and rebuilding the Xcode
However I am still getting the same error message.
I have never had this issue before with pods, does anyone know how to solve this ?
Thanks
I have resolved the same error deleting the TwitterKit.framework from the Frameworks folder.

iOS Swift No Such File or Directory In Debug-iphoneos

Somebody please save me.
This is the error I'm getting. I've tried cleaning, doing a build clean, pod installs and updates. I have not found a solution.
Shell Script Invocation Error Group
/Users/arthuraraujo/Library/Developer/Xcode/DerivedData/Anti-Social_Club-gizjofrkxroutxezxlbuadlvpwbo/Build/Products/Debug-iphoneos/Anti-Social: No such file or directory
I have similar issues in the past and doing the following work for me. Hope your problem is same as mine:
Close xCode
Go to this folder Group
/Users/arthuraraujo/Library/Developer/Xcode/DerivedData/Anti-Social_Club-gizjofrkxroutxezxlbuadlvpwbo/Build/Products/Debug-iphoneos/
and delete Anti-Social.
Restart xCode, clean & build.
It is hard to really tell you the solution with just the information provided. However, the first thing I would try is deleting the derived data, as CodeBender stated. You should also look at your search paths in your project's building settings to make sure your pods are correct/ connecting your pods files to your project.
Possible duplicate of:
Xcode 8 Shell Script Invocation Error
Here is what I did when I got this:
Used this site to completely remove All Versions of cocoapods:
https://superuser.com/questions/686317/how-to-fully-uninstall-the-cocoapods-from-the-mac-machine
Re-installed current stable version of cocoapods (v1.1.1 for me)
Deleted podlock and pods directory
Deleted old .xcworkspace file (this was key for me).
Did "pod install"
Opened xcode and cleaned project and deleted derivedData.
Go to your build phases and remove libReact.a from the linked libraries.
Then add libReact.a but select this one:
libReact.a from 'React' target in 'Pods' project

Linking error Xcode 7.2: Framework Not Found

I have been trying to find a solution to this problem for hours. Every time I try to build my project, I get the same error:
ld: framework not found SwiftHTTP
I tried following the instructions in this question but to no avail.
Are there any ideas as to what else I may be doing wrong?
As mentioned in comments, OP accessed the project via .xcproject instead of .xcworkspace, thus the framework is not loading. To solve the problem (and restore to recommended settings by Cocoapods), follow the steps below:
Close all Xcode project / workspace
In Terminal, issue pod update in the Project folder to restore the settings
After Cocoapods finished running, open the .xcworkspace and build the project

Resources