My build fails when attempting to archive my react native project in Xcode. The following appears when trying to archive:
Does anyone know what may be causing this error? I have tried editing the run script in 'Bundle React Native code and images' to the below as suggested by the link https://github.com/facebook/react-native/issues/3935:
. ~/.nvm/nvm.sh
../node_modules/react-native/scripts/react-native-xcode.sh
However, I'm still getting the same error. Can someone please advise? I'm really stuck here.
Thanks.
Related
I got an error that said, it works before I update my OS to Monterey. but after I update it just like this.
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 AwesomeProject.xcworkspace.
How can I solve this?
I try some references in Stackoverflow too, and I don't have a build folder in my project so it seems quite outdated some references in StackOverflow.
I tried to build my expo project on XCode so I ejected that and open in XCode using xed ios. but when I tried to build it and run it show's me that build was successful but on simulator it stuck at '100%' and wont run. also on XCode I receive this:
"expo-updates must be configured with a valid update URL or scope key."
how can I solve this issue?
It is an expo issue, the solution found is:
Sign in to your expo account in expo-cli and it will configure expo-updates properly when you eject. You can fix this on an already ejected project after signing in by running expo eject --no-install.
Or
Check JWrubel comments for the same issue below.
I was able to get around this issue without doing expo login by editing ios/<AppName>/Supporting/Expo.plist and adding a key for EXUpdatesURL like so:
<key>EXUpdatesURL</key>
<string>https://example.com</string>
This causes the update check to fail, but the build to succeed. I tried setting EXUpdatesEnabled to false and EXUpdatesCheckOnLaunch to NEVER, but I didn't find those had any impact on the process.
I'm trying to archive an iOS react native app with Xcode but it give me these errors:
error The resource /Users/andreacolombo/Desktop/projectName/ios/index.js was not found..
'error: File /Users/MyUser/Library/Developer/Xcode/DerivedData/projectName-bxaxxwslkvjsrgcpsonpisxutuei/Build/Intermediates.noindex/ArchiveIntermediates/projectName/BuildProductsPath/Release-iphoneos/appName.app/main.jsbundle does not exist. This must be a bug with'
My react native version is: 0.59.10.
If i build and run it in release configuration, it give me the same errors
With an other mac it works so it is not a code problem..
I'm going crazy...
What could be?
Thanks!
I'm trying to archive my iOS app which works fine when I build for debugging via xcode but when I try to archive the app I get the following errors which I'm not sure what's causing it
I think the real reason for failure would be a little above in the listing, which cannot be seen here.
I had similar kind of issue when updated react native to version 0.54.2 the iOS archive stopped working.
My error message was something like:
A problem occurred while trying to fetch the minifier. Path: "metro-minify-uglify" Cannot find module 'uglify-es'
And the problem was that my react native project only had uglify-js in node-modules (I quess that the new react native needed the uglify-es). So I installed that with:
npm install uglify-es --save
And after that I did (not sure if these are needed) xCode->clean project, shutdown xCode, delete Library->Developer->Xcode->DerivedData, restart Xcode and archive started working again.
I have the following problem when compiling a project in IOS 10. The project needs the Developer Team to compile correctly.
sudo cordova build ios --device
When you run the command, the following error:
In some forums JIRA official Apache Cordova, show the following solution:
issues.apache.org/jira/browse/CB-11845
I have not found a way to implement it properly to avoid this error. Build.xcconfig also attempt to modify the file, but I failed to fix the error.
If anyone has any ideas, I appreciate it very much.
Thank you.