I'm developing an APP in React Native and I'm trying to run it in the IOS simulator. I've already tried in Android and the project run without problem, but when I try to run it on XCode Simulator trows the following error:
line 3: ../node_modules/react-native/scripts/react-native-xcode.sh: Permission denied
Command PhaseScriptExecution failed with a nonzero exit code
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening IDRUS_RSR.xcworkspace
* BUILD FAILED *
The following build commands failed:
PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/juanshallcrass/Documents/IDRUS/idrus-rsr/ios/build/IDRUS_RSR/Build/Intermediates.noindex/IDRUS_RSR.build/Debug-iphonesimulator/IDRUS_RSR.build/Script-00DD1BFF1BD5951E006B06BC.sh
(1 failure)
I've already tried changing the Bundle react Native code and images, to: ../node_modules/react-native/scripts/react-native-xcode.sh but nothing changed.
What can I do?
Looks like your project does not have the right permissions, try reinstalling the node_modules with your current user
The file ../node_modules/react-native/scripts/react-native-xcode.sh is currently throwing a Permission denied Exception
Related
I am facing issues while creating my ios build in the native script environment. This error is in nsld.sh file which is the ios platform file.
I removed the ios platform multiple times and add the platform again but still the same issue every time.
Here is my error:
/Users/mypc/Code/app/MobileApp/mobileApp_nativescript/platforms/ios/internal/nsld.sh: line 60: /Users/mypc/Downloads/Xcode: No such file or directory
Command Ld failed with a nonzero exit code
When I tried to build my application on IOS emulator, it shows the following error, I search online and I found it has something to do with Pod, but I didn't get any useful solutions for this.
The following build commands failed:
PhaseScriptExecution Copy\ www\ directory /Users/kai/Library/Developer/Xcode/DerivedData/RADAR_Questionnaire-ewiaqvtxwvvffzdyqzeazoxksrcm/Build/Intermediates.noindex/RADAR\ Questionnaire.build/Debug-iphonesimulator/RADAR\ Questionnaire.build/Script-304B58A110DAC018002A0835.sh (in target 'RADAR Questionnaire' from project 'RADAR Questionnaire')
(1 failure)
xcodebuild: Command failed with exit code 65
By the way, the app can build fine until I upgrade my mac from 11 (Big surf) -> 12 (Monetary ), I am not sure does it have something to do with the upgrade.
I'm working on an iOS app with React Native (v0.67.3) and whenever I try to build it, I'm getting an error when Xcode (V13.3) code tryes to run a scrript. Have no clue why this is happening. I have npm version 8.1.2 installed.
The error:
/Users/pmartinez/Library/Developer/Xcode/DerivedData/MobileApp-frkhaqamtpcugdcsyhasoiuhppdr/Build/Intermediates.noindex/MobileApp.build/Debug-iphonesimulator/Bravofly.build/Script-0C0D98A027E095D600B19536.sh:7: command not found: npm
Command PhaseScriptExecution failed with a nonzero exit code
I am constantly getting the following error when trying to build my Flutter app in Xcode:
Failed to package /Users/Me/yourapp/
Command PhaseScriptExecution failed with a nonzero exit code
Font subsetting is not supported in debug mode. The --tree-shake-icons flag will be ignored.
I am out of options. I tried everything, literally every single of the answer provided in previous answers.
Note:
1 - I first build the app on Windows
2 - Cloned my app on my MacBook via Github
3 - Downloaded Cocoapods
4 - Ran Flutter run
Failed to package /Users/Me/yourapp/
Command PhaseScriptExecution failed with a nonzero exit code
And there is the error.
Edit:
Font subsetting is not supported in debug mode. The --tree-shake-icons flag will be ignored.
Is what I get now...
How can we solve this?
Note: working on an older MacBook (2014) and my device (iPhone) is plugged in. Both the device as well as simulator are not working.
Try to do:
flutter create .
You have to do this in your main project folder. Remove any ios folder if there is one and make sure you do the command with the dot.
Should work.
It will solve it for sure. Both of your questions are related to the same topic.
I ejected from expo to pure react native project. IOS project is not running as expected. The error i got was
~/ReactCommon/yoga/yoga/YGEnums.h: No such file or directory
More error is show below
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening TrackUs.xcodeproj
** BUILD FAILED ** The following build commands failed:
PBXCp /Users/user/ReactCommon/yoga/yoga/YGConfig.h /Users/user/Documents/Apps/App/ios/build/TrackUs/Build/Products/Debug-iphonesimulator/include/yoga/YGConfig.h
PBXCp /Users/user/ReactCommon/yoga/yoga/YGValue.h /Users/user/Documents/Apps/App/ios/build/TrackUs/Build/Products/Debug-iphonesimulator/include/yoga/YGValue.h
PBXCp /Users/user/ReactCommon/yoga/yoga/YGMarker.h /Users/user/Documents/Apps/App/ios/build/TrackUs/Build/Products/Debug-iphonesimulator/include/yoga/YGMarker.h
PBXCp /Users/user/ReactCommon/yoga/yoga/YGEnums.h /Users/user/Documents/Apps/App/ios/build/TrackUs/Build/Products/Debug-iphonesimulator/include/yoga/YGEnums.h (4 failures)
Is there anything I did wrong? It seem not to see the YOGA file or path.
Try deleting the build folder <your-project>/ios/build and then run react-native run-ios again.