Twitter kit iOS - No such file or directory - ios

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.

Related

Cannot find 'FirebaseApp' in scope - Xcode Swift

I am a beginner in Xcode, and I have just installed the Firebase framework with CocoaPods. When I import the framework, I want to add the line "FirebaseApp.configure()" but when I add it, Xcode gives me an error : "Cannot find 'FirebaseApp' in scope". How can I solve this error?
I already tried to re-install the framework !
enter image description here
I believe you have opened the wrong project. Things you can do to verify is to
Check if the pods have been added. For this check the root directory in Finder and see if you have a folder called Pods, or check if a folder named Pods can be seen in your project within XCode. If not open terminal go to your project directory and type pod install
After you have verified that the pods have been installed, open the KeKonMange.xcworkspace instead of the KeKonMange.xcodeproj from your finder directory (.xcworkspace is the white icon, while .xcodeproj is the blue one. example can be found below)
If you can't resolve your problem, comment below
I don't know if this helps but when I tried to launch the project, another error appeared: "Could not build Objective-C module 'Firebase'"... Maybe it has something to do with...?
Image of code : https://i.stack.imgur.com/bgkSz.png

xcode 13 executable file not found

I've an error with xcode 13. When i try to run my app on a real device (arm64 architecture) i got the following error:
Executable Not Found
Domain: DVTMachOErrorDomain
Code: 5
Recovery Suggestion: /path/to/file/MyApp.app is not a valid path to an executable file. Please rebuild the project to ensure that all required executables are created. Check your project setting to ensure that a valida executable will be built.
has anyone ever had this problem? The build process finish without errors. Right now i've excluded x86_64 architecture from "Excluded Architectures" option and set the parameter "Architectures" to "Standard Architectures (arm64, armv7)".
TARGET -> Build Settings, search 'VALID'.
Set VALID_ARCHS, add if run with a simulator, else set arm64.
I faced the same problem and resolved it by deleting files and folders below,
Pods ,
Podfile.lock and
mme.xcworkspace
And running pod install
This Error occur because there was a missing file.
Click on the Error icon on the top header and you redirect to errors there you notice there are some files that are not there or missing.
Added the file and run your project again working correctly.
I got the same error and it was just because I didn't change the build settings correctly after I renamed the folder where Info.plist belongs to.
So I needed to change this setting so that it was the same with the actual path of Info.plist:
Did you make sure that the executable file MyApp located in your folder /path/to/file/MyApp.app/ matches the value of the Executable file attribute in your Info project file?
On my machine, the executable path is : /Users/.../DerivedData/Debug-iphonesimulator/Runner.app/Runner. I noticed that the executable name (Runner in my case) was wrong in the Info file. Correcting it fixed the issue for me.
See the the screenshot below :
Check if there are any deleted files(which happens when you pull the code from Git) and add those files back, Close Xcode, Restart the system, Clean the Project and Run the Project this Worked for me.
I had this error as well.
This is not a blanked solution fix.
For me Xcode had some broken references to files, so I had to connect them and set the file location to be "relative to group" vs "relative to project"
The error was being incorrectly reported as "Executable not found" when building the error was more clear.
Build input file cannot be found: '/Users/MY_USER_NAME/Programs/ios/PROJECT_DIR/SRC/file.xib' is not found.
Some file is missing, you just have to add from project folder. Just restart your Mac and open XCode with your project, you will see the missing file.
I have previously tried every possible solution like cleaning derived data, running pod install but nothing worked. Try above solution
Perhaps the executable file entry is wrong in your Info.plist?
The entry Executable file should be set to $(EXECUTABLE_NAME).
Targets -> Build Settings, search plist
Set Generate Info.plist File to No, set Info.plist File with your info.plist file path.
That's works for me.
I encountered this issue just now after setting up a new prefix header to my product target with a wrong file path:
$(SRCROOT)/$(PROJECT_NAME)/PrefixHeader.h
Correct it to
$(SRCROOT)/$(PROJECT_NAME)/PrefixHeader.pch
resolved my issue. What a stupid Xcode!
pod install or pod install --repo-update should work !
For me, I removed the files in Recovered Reference folder. Then this error gone.
Fast forward to 2022, I got this error after having installed a TestFlight version and was trying to run from Xcode. I deleted the app off my phone, ran again, and was able to install successfully. I hope this helps someone!

React native "'AIRMapCoordinate.h' file not found" error

I stuck with a problem with Xcode. I upgraded one package for my react-native project (react-native-track-player#2.0.0-rc13) and after that when I tried to build the project, it does have problems with some headers in the "react-native-maps#0.26.1" package. It shows this error:
'AIRMapCoordinate.h' file not found
I realized that this error happening because Xcode can't find those headers and those headers are in this directory:
$(SRCROOT)/../node_modules/react-native-maps/lib/ios/AirMaps
So I added this path to "Header search paths" but it still can't find those headers. I also delete pods and re-install them and cleaned the project build folder but I still have the same problem.
Do you have any ideas about what goes wrong here?

'RCTSwiftBridgeModule.h' file not found

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

Trying to add the Firebase SDK to an iOS project using CocoaPods

When I try and build the project after configuring my podfile and installing the pod. I get this
.
This is the specific error message:
"/Users/jbmoss84/Library/Developer/Xcode/DerivedData/Lets_Travel-cgnhhmvnwassqgdzlgervlydkwfz/Build/Products/Debug-iphoneos/Lets
Travel.app/Frameworks/GoogleToolboxForMac.framework: No such file or
directory?
I am using the Xcode workspace when I build.
I have tried cleaning my build folder, deleting my derived data, and anything else that I could think of. Nothing seems to work.
Anyone have any ideas?

Resources