error after build in react native for ios - reactjs

Command for build .ipa (.app) file:
react-native run-ios --configuration=release
And I want to build app for ios, but cant uploaded to diawi, console error:
** BUILD SUCCEEDED **
Installing build/Build/Products/release-iphonesimulator/app.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Launching org.reactjs.native.example.app
org.reactjs.native.example.app: 11067
Error in Diawi (the .app file itself exists):
An error occurred: 4001009: Invalid .ipa file: missing embedded
mobileprovision
What I should do? Worked on simulator. Maybe somehow on another can build?

You need to check main three steps from xCode:
Set proper Bundle Indentifier
Select Team from which you created your certificate and provisional profile
Set your Signing Developer.

Related

Expo run:ios generating error PhaseScriptExecution

I have an expo managed app and I want to use a notification library called OneSignal which has an expo plugin. This plugin adds native code not supported by Expo Go, so I'm forced to enter bare workflow and build native iOS and Android folders.
I'm building the iOS package by running expo run:ios. And build fails due to something with PhaseScriptExecution. This is my log:
2022-06-09 15:10:39.377 xcodebuild[35947:834210] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-06-09 15:10:39.377 xcodebuild[35947:834210] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution [CP-User]\ Generate\ app.config\ for\ prebuilt\ Constants.manifest /Users/celsomattos/Library/Developer/Xcode/DerivedData/teste-gcaxmzswwhjxgrfhkfyporjorevj/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/EXConstants.build/Script-46EB2E0000D7B0.sh (in target 'EXConstants' from project 'Pods')
(1 failure)
Expo version incompatible?

reactjs: files served into public folder resolve into a 404 error in production build but work in development with npm start

I am trying to serve 2 files needed by javascript for a web assembly package. The files example.wasm and example.data are in the public folder in the react js project file structure. When running with a development server using npm start, the files can be found by the project and can be read correctly. When building the project the files end up in the root directory of the project as expected. In spite of using the current PUBLIC_URL path for the files, the files can not be found, but the paths in the web console seem to be correct.
I am hosting the reactjs app from IIS 7.
Can you help me with the process to debug the problem described above?
Thank you in advance for your help.
After the help of #LexLi I have enabled the Failed Request Tracing Module in the IIS following this documentation:
[https://learn.microsoft.com/en-us/iis/troubleshoot/using-failed-request-tracing/troubleshooting-failed-requests-using-tracing-in-iis][1]
Reading the log generated by the Failed Request Tracing Module I saw that when requesting the files example.wasm and example.data from the server the actual error was not 404 Not Found but:
SECURITY_DENIED_BY_MIMEMAP
After googling the error above I realized that the Default MIME Types configured in the IIS do not include files with extensions .data and .wasm. After adding those MIME Types to the IIS configuration using the MIME Type Module in the Web Server Level in IIS Management and restarting the server the problem was resolved.

react-native-version-number:verifyReleaseResources in React Native application

I am doing react native application. And I tried to create apk file for android.
I have installed multiple components (libraries), In that to get version number, I have installed react-native-version-number.
But, While trying to create apk file, Getting following error
* What went wrong:
Execution failed for task ':react-native-version-number:verifyReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
How to fix this, Any suggestion.

I get internal server error while running next js app with styled component

I'm using Next.js with styledcomponent, It gets no error in Dev mode. but while running in Build production mode. I get an error. without line number or file name.
I have also opened an issue Github
https://github.com/zeit/next.js/issues/5932
ERROR
NODE_ENV=production node server.js
Ready on http://localhost:3000
Error: An error occurred. See https://github.com/styled-components/styled-components/blob/master/src/utils/errors.md#1 for more information. Additional arguments: undefined
at new StyledComponentsError (/Users/rahulkishan/Documents/React_Mobile_and_web/ReactWebV1/purchaseweb/node_modules/styled-components/dist/styled-components.cjs.js:161:58)
at constructWithOptions (/Users/rahulkishan/Documents/React_Mobile_and_web/ReactWebV1/purchaseweb/node_modules/styled-components/dist/styled-components.cjs.js:2182:13)
at styled (/Users/rahulkishan/Documents/React_Mobile_and_web/ReactWebV1/purchaseweb/node_modules/styled-components/dist/styled-components.cjs.js:2126:12)
at Object. (/Users/rahulkishan/Documents/React_Mobile_and_web/ReactWebV1/purchaseweb/.next/server/static/i2aIDkRZkhvVhtPxvk4BE/pages/index.js:4504:77)
Why it shows this error in Build mode only. Not in dev mode.
We have built a large app.
It is really difficult to find the problem.
Error has its path
static/../pages/index.js
And line number as well
After giving npm run build
Nexts js creates a build folder as
/.next/server/static
Inside that folder you will be able to see the complete production code.

AppEngine: Unable to update app: Failed to compile jsp files

I just update my AppEngine SDK from 1.7.0 to 1.7.5 because of the problem related to adding document in Full Text Search API.
But now, I can not upload the application.
Here are the errors:
Deploying to Google' has encountered a problem
Unable to update app: Failed to compile jsp files.
In the log file:
Unable to update:
com.google.appengine.tools.admin.JspCompilationException: Failed to compile jsp files.
at com.google.appengine.tools.admin.Application.compileJsps(Application.java:756)
at com.google.appengine.tools.admin.Application.createStagingDirectory(Application.java:592)
at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:370)
at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:53)
at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:433)
at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:148)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Any help? Thanks
Well you need to have the JDK pointing in your build path of eclipse.
Click on Installed JREs and point it upto your JDK installed location.
If that even didn't work go to eclipse.ini file in your eclipse directory. Add the following argument.
-vm
C:\Program Files\Java\jdk_1.6.30\bin\javaw.exe
Then restart your eclipse and things will start working.
Run the app on your local development server, you will discover the JSP files have errors that you need to sort out before compiling.

Resources