eas build -p ios problem with pod install - javascript

try to build an IPA with EXPO EAS now but i keep facing this problem with the pod install
i expect building an IPA as i use to do before with : expo build
plus the expo build was working just fine
here the error i get
Using Expo modules2Auto-linking React Native modules for target Malabiss: RNCAsyncStorage, RNCPicker, RNGestureHandler, RNReanimated, RNSVG, RNScreens, RNVectorIcons, and react-native-safe-area-context3[Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json4Analyzing dependencies5Fetching podspec for DoubleConversion from ../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec6[Codegen] Found FBReactNativeSpec7Fetching podspec for RCT-Folly from ../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec8Fetching podspec for boost from ../node_modules/react-native/third-party-podspecs/boost.podspec9Fetching podspec for glog from ../node_modules/react-native/third-party-podspecs/glog.podspec10Adding spec repo trunk with CDN https://cdn.cocoapods.org/11[!] Unable to find a specification for UMCore depended upon by UMPermissionsInterface12You have either:13 * out-of-date source repos which you can update with pod repo update or with pod install --repo-update.14 * mistyped the name or version.15 * not added the source repo that hosts the Podspec to your Podfile.16pod exited with non-zero code: 1

Related

React Native ios run issue

I am new to react-native and running yarn ios on my react native project keeps failing with the following error.
`** BUILD FAILED **
The following build commands failed:
CompileC
/Users/gift/Library/Developer/Xcode/DerivedData/gainerDemo-eudprqpgpjkdvzechchqincjgjlo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/SysUio.o
/Users/gift/Desktop/personal
projects/gainerDemo/ios/Pods/RCT-Folly/folly/portability/SysUio.cpp
normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in
target 'RCT-Folly' from project 'Pods')
`
Folly hardly ever works for me.
In your Podfile, comment out the line flipper_post_install(installer) i.e:
# Use a hash to comment within Podfiles and Podspecs.
# flipper_post_install(installer)
Then reinstall pods by running either npx pod-install or by typing pod install in your Terminal from within the ios directory. You have to do this every time you modify the Podfile or install a new native binary for iOS.

How to Install React- Naitve project after uninstalling it from physical device

I have recently uninstalled the react native project to rebuild the project in the physical device.
Installing APK 'app-debug.apk' on 'ZenFone Max Pro M1 - 10' for app:debug
Installed on 1 device.
BUILD SUCCESSFUL in 26s
167 actionable tasks: 2 executed, 165 up-to-date
info Connecting to the development server...
info Starting the app on "C4ATAS000000"...
but it would not initialize the project. after showing this error.
Starting: Intent { cmp=com.newproject/.MainActivity }
Error type 3
Error: Activity class {com.newproject/com.newproject.MainActivity} does not exist.
Done in 37.23s.
What should i do to install it again in the physical device.
My Gratefulness in advance
This is a common error that occurs sometimes, Have a try with the below commands which might help you
Uninstall the old app
open project and then open terminal
cd android
./gradlew clean
cd ..
npx react-native run-android

React native project doesn't run iOS

I've started React-Native programing recently. When I want to create a new project based on a guidence of "https://reactnative.dev/docs/environment-setup" and want to run in xcode 12.5 this error is shown:
bash: Progects/Trading: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
enter image description here
I' ll be thankfull of guiding me
Make sure you installed pods. If you already installed then delete the pods folder and podfile.lock inside the ios.
Run this command on your terminal:
cd ios && pod install && cd ..
Open your ios folder through finder and open .xcworkspace file and run from their

Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

I am new to react-native development. I was trying a simple react-native project from Facebook git hub. I have followed all the steps but when I try to run the project by typing
react-native run-android
it simply shows me following error:
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 864 file(s) to forward-jetify. Using 4 workers...
info Starting JS server...
info Launching emulator...
info Successfully launched emulator.
info Installing the app...
Warning: No leading - on line 1 of `C:\Program Files\Java\jdk-13\lib\jvm.cfg'
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
Warning: No leading - on line 1 of `C:\Program Files\Java\jdk-13\lib\jvm.cfg'
at checkExecSyncError (child_process.js:611:11)
at execFileSync (child_process.js:629:15)
at runOnAllDevices (C:\Users\Toshiba\Documents\AwesomeProject\node_modules\#react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:39)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Command.handleAction (C:\Users\Toshiba\Documents\AwesomeProject\node_modules\react-native\node_modules\#react-native-community\cli\build\index.js:164:9)
Turns out I had a problem with my Java. I uninstall JDK and JRE and reinstall the latest version and it worked out for me.
Try these once :
1.reopen android studio as admin. build the gradle. if no issue, proceed on
access the android folder of your app. i.e c:\folder\app\android
2.type in gradlew clean
3.run react-native run-android
Hope it helps
If you're using the latest version of Java Development Kit, you'll need to change the Gradle version of your project so it can recognize the JDK. You can do that by going to {project root folder}\android\gradle\wrapper\gradle-wrapper.properties and changing the distributionUrl value to upgrade the Gradle version. You can check out here the lastest releases of Gradle

build failed react-native 0.6.5 We ran "xcodebuild" command but it exited with error code 65

I'm having this problem "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 starter.xcodeproj. Run CLI with --verbose flag for more details." since I pulled the latest update from the other colleague, I can't run the project in my simulator, but my colleagues side works fine.
I've tried to change the build system to legacy build system.
Clone the project again.
remove the build folder under iOS folder, and run again.
remove the node module folder and run again.
I have tested in different device is not working too.
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 starter.xcodeproj. Run CLI with --verbose flag for more details.
User defaults from command line:
IDEDerivedDataPathOverride = /Users/nexplatform/Desktop/padini scm mobile/SCM/ios/build/starter
brew install cocoapods
cd projectfolder/ios
pod install
and
cd..
react-native run-ios

Categories