I have a react native app. I integrated one signal into android and ios separately.
There is no problem in android side.
After i am setting ios sdk, i am getting error while get archive for testfligt.
Error text:
.) Validate OneSignalNotificationExtension.appex
..) Command ValidateEmbeddedBinary failed with a nonzero exit code.
Before installing OneSignalNotificationExtension
I was able to get archive successfully. I think the problem is inside OneSignalNotificationExtension.
I use m1 macbook air and my ios is version 11.0.
Related
I am trying to run my app with command "react-native run-ios". But it is failing with the given screen. I have a Mac mini m1 and I am trying to run it on "iPhone 14" simulator. All the components of Xcode, node, npm and ruby are compatible and do not pose any compatibility issue.
I have tried all methods I could find online, but nothing solved it. Couldn't find the documentation regarding this on any official react native forum. Please help.This is what is displayed on the terminal when I run the command
I am new in react native, I have followed all the instruction as in react native getting started guide. When i enter the 'npx react-native run-android' command. The metro server starts and gives an error.
Metro server error image
Visual Studio Code terminal error
My node and jdk version are the same as mentioned on their website.
node and jdk version
Android sdk versions are also same.
android sdk
I have also tried it on my physical device same error occurs every time.
environment variable is also added.
[Environment variable] (https://i.stack.imgur.com/m8ik1.png)
We upgraded the mobile development project we are working on to React Native v0.70.3 from 0.66.4 and our build starting to give all sort of issue in our build server after that. Both iOS and Android builds are failing with following error messages.
Android:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-camera-kit:verifyReleaseResources'.
A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR:/Users/jenkinsoffshore/CICDBuilds/workspace/Mobile-Service-Android/node_modules/react-native-camera-kit/android/build/intermediates/merged_res/release/values/values.xml:2784: AAPT: error: resource android:attr/lStar not found.
iOS:
iOS build ends in success and we can upload to testflight as well. but getting the following error in email and the app crashes in devices.
ITMS-90863: Apple silicon Macs support issue - The app links with libraries that are not present on Mac:
#rpath/hermes.framework/hermes
After you’ve corrected the issues, you can upload a new binary to App Store Connect
We upgraded the MacOS version to Ventura and Xcode along with in the build machine. In developer machine both builds work fine.
Do we have to do anything specifically after upgrading to React Native 0.70.3?
Downgrade to atmost react-native 0.69
Rebuilding the server completely solve the issue. We had to setup everything from scratch. There must be a simple solution that that but project deadlines made us to go for a full re-inttall.
I'm able to successfully run the starter "AwesomeProject" react-native app on both iOS and Android.
I have a private repo project that was built by an outsourced team that I'm trying to get running on my local Macbook Pro with an M1 Chip. The team claims they are able to get the project running on a normal Macbook Pro (without the M1 chip).
I'm unable to build the project on iOS and get the following error:
The following build commands failed: SwiftEmitModule normal arm64
Emitting\ module\ for\ Charts (in target 'Charts' from project 'Pods')
(1 failure)
When I try to run the Android app I'm able to get it to run on the Android Device simulator but get the following errors from
ERROR Error: token is not a valid string
ERROR Invariant
Violation: Module AppRegistry is not a registered callable module
(calling runApplication). A frequent cause of the error is that the
application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
ERROR
Invariant Violation: Module AppRegistry is not a registered callable
module (calling runApplication). A frequent cause of the error is that
the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
I'm not sure how to further debug these issues. I followed some of the debugging I saw with M1 Macbooks and React-Native like using "brew" to install cocoapods and then always using "alias pod='arch -x86_64 pod'" for the pod command. I see lots of other hacks to make react-native work on M1 like this article: https://goxotech.medium.com/apple-m1-react-native-was-not-exactly-what-we-thought-but-that-is-not-an-issue-6c8d359926df
try adding this in your PodFile
post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
end
end
I've created a react native app, by simply doing:
react-native init app
I've followed this tutorial: Facebook Getting Started (I use Linux)
and I have done exactly what it says.
However, when I try to run the app (react-native run-android), I got the following message:
Starting JS server...
Building and installing the app on the device (cd android && ./gradlew installDebug)...
Exception in thread "main" java.lang.RuntimeException: Could not determine wrapper version.
at org.gradle.wrapper.GradleWrapperMain.wrapperVersion(GradleWrapperMain.java:111)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Caused by: java.lang.RuntimeException: No build receipt resource found.
at org.gradle.wrapper.GradleWrapperMain.wrapperVersion(GradleWrapperMain.java:97)
... 1 more
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
```
How can I solve this problem?
According to this link
https://github.com/MinecraftForge/ForgeGradle/issues/227
it's because you have some special character in your project path (like "!")
I got the same issue in a Flutter project as I was organizing some of my projects. In my case also found that my source path contained special characters when I change the folders, after removing it works perfectly fine. This will usually happen to project that contains java code and I think this is because java is compiled based on the path you provide, so the compiler does not understand the special characters we used