I have a Flutter application that I am trying to run on my personal iPhone. Trying to run the application from Android Studio gives me this error:
Failed to build iOS app
Could not build the precompiled application for the device.
Parse Issue (Xcode): Module 'flutter_geofire' not found
/Users/davidedileo/Desktop/users_drivehome_app-master/ios/Runner/GeneratedPluginRegistrant.m:29:8
Error launching application on iPhone di Simone.
Whereas if I run the app on Xcode:
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Operation not permitted
Related
After ejecting the Expo project using expo eject, and try to run the project using Xcode "11.7" & Command-line "For iOS"
I got these errors,
Note:
Android Works well after ejecting
iOS & Android Works well before Ejecting.
Xcode
Details
The file “MyApp” couldn’t be opened because you don’t have permission to view it.
Domain: NSCocoaErrorDomain
Code: 257
Failure Reason: You don’t have permission.
Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File > Get Info.
User Info: {
NSFilePath = "/Users/username/Library/Developer/Xcode/DerivedData/MyApp-bnfffrwsrhskljawuujrmpuwldgt/Build/Products/Debug-iphonesimulator/MyApp.app";
}
--
The operation couldn’t be completed. Permission denied
Domain: NSPOSIXErrorDomain
Code: 13
Failure Reason: Permission denied
--
System Information
macOS Version 10.14.6 (Build 18G95)
Xcode 11.7 (16142)
Architectures
Command-line
npx react-native run-ios
info Found Xcode workspace "MyApp.xcworkspace"
info Launching iPhone 11 (iOS 13.7)
info Building (using "xcodebuild -workspace MyApp.xcworkspace -configuration Debug -scheme MyApp -destination id=60F7E669-0AE4-4CF3-9BC8-17027D01B172")
success Successfully built the app
info Installing "/Users/username/Library/Developer/Xcode/DerivedData/MyApp-bnfffrwsrhskljawuujrmpuwldgt/Build/Products/Debug-iphonesimulator/MyApp.app"
An error was encountered processing the command (domain=IXUserPresentableErrorDomain, code=1):
This app could not be installed at this time.
Could not install at this time.
Failed to chmod /Users/username/Library/Developer/CoreSimulator/Devices/60F7E669-0AE4-4CF3-9BC8-17027D01B172/data/Bundle/Application/3C7513F0-9BFE-4C94-A722-7C1BE6898E54/MyApp.app/MyApp : No such file or directory
Underlying error (domain=MIInstallerErrorDomain, code=4):
Failed to chmod /Users/username/Library/Developer/CoreSimulator/Devices/60F7E669-0AE4-4CF3-9BC8-17027D01B172/data/Bundle/Application/3C7513F0-9BFE-4C94-A722-7C1BE6898E54/MyApp.app/MyApp : No such file or directory
info Launching "com.MyApp"
error Failed to launch the app on simulator, An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "com.MyApp" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.MyApp" is unknown to FrontBoard").
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
The operation couldn’t be completed. Application "com.MyApp" is unknown to FrontBoard.
Application "com.MyApp" is unknown to FrontBoard.
Failure Reason: You don’t have permission.
First of all please be sure that delete the derived data
If it didn't work then change permission for Terminal. Detail link is here
Probably you would not need this but just in case :
Maybe disabling system integrity protection with csrutil disable works for you.
Highly recommend you to read the Apple document first.
I also had this problem when I used react-native to create a new project.I had solved this problem.
System Information
macOS Version 10.14.4
Xcode 11.3.1 (16142)
run "react-native --version" in project directory. The version is "react-native: 0.64.0". I used "npx react-native init interview --version 0.63.4" to create a new project.It worked!
So I guess use the older version to create a new project can solve your problem.
After updating xcode and NS7 my app does not open on devices (simulator, ipad, iphone) ... after tns clean and ns run ios NOW I AM GETTING THIS :( I have no idea from where this NS-cloud came !
MacMini:MY-DOC timmrichter$ tns clean
Error while loading nativescript-cloud is: Cannot find module '/Users/timmrichter/.local/share/.nativescript-cli/extensions/node_modules/nativescript-cloud'
(node:900) ExperimentalWarning: The fs.promises API is experimental
:heavy_check_mark: Cleaned directory hooks
:heavy_check_mark: Cleaned directory platforms
:heavy_check_mark: Cleaned directory node_modules
:heavy_check_mark: Cleaned file package-lock.json
:heavy_check_mark: Project successfully cleaned.
MacMini:MY-DOC timmrichter$ ns run ios
Error while loading nativescript-cloud is: Cannot find module '/Users/timmrichter/.local/share/.nativescript-cli/extensions/node_modules/nativescript-cloud'
(node:929) ExperimentalWarning: The fs.promises API is experimental
Searching for devices...
At the end app installed on device but simply does not open
**Installing on device 7BE6C620-A73C-42DF-81AD-65A0083CB13E...
Successfully installed on device with identifier '7BE6C620-A73C-42DF-81AD-65A0083CB13E'.
Successfully transferred all files on device 7BE6C620-A73C-42DF-81AD-65A0083CB13E.
Restarting application on device 7BE6C620-A73C-42DF-81AD-65A0083CB13E...
CONSOLE INFO: HMR: Hot Module Replacement Enabled. Waiting for signal.
NativeScript discarding uncaught JS exception!**
I was working on an app with Xcode 11.6 connecting my phone to test run when I got an error:
<unknown>:0: warning: no such sysroot directory: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.5.sdk'
<unknown>:0: error: unable to load standard library for target 'arm64-apple-ios13.5'
After this happened, all of the simulators and the option to test the app on my phone disappeared (see top left of screenshot).
I know that this is not an error on the specific app I was working on because I can no longer run anything on Xcode. When starting a new project this error immediately causes the build to fail.
I am brand new to coding so I would appreciate a low-intelligence explanation. Thanks!
I submitted an app to the Appstore but it gets refused with this message:
While processing your iOS app, Appname, errors occurred in the app thinning process,
and your app couldn’t be thinned. If your app contains bitcode, bitcode processing
may have failed. Because of these errors, this build of your app will not be
able to be submitted for review or placed on the App Store.
For information that may help resolve this issue, see Tech Note 2432.
I added this to my cproj file in the build iphone section:
<MtouchEnableBitcode>false</MtouchEnableBitcode>
I also folowed this to solve the UIWebView problem. no idea if it is related:
https://devblogs.microsoft.com/xamarin/uiwebview-deprecation-xamarin-forms/
also updated all the packages to the latest, tried to put the minimum target OS to 9.0 tried to put enablebitcode to true, tried everything i was able to find online but without any result..
Nuget packages I use:
in the main project:
Newtonsoft.Json
RedCorner.Forms
SkiaSharp
sqlite-net-pcl
Xamarin.essentials
xamarin.ffimageloading
xamarin.ffimageloading.forms
xamarin.ffimageloading.svg
xamarin.ffimageloading.svg.forms
xamarin.ffimageloading.transformations
xamarin.forms
inside the IOS project:
sqlite-net-pcl
xamarin.essentials
xamarin.forms
These are all up to date... the app compiles and works great in the simulator..
Any idea on how I can sovle this frustrating problem?
UPDATE:
tried to package in Xamarin and then distribute in ad Hoc mode in xcode, and there it throws this error:
Failed to read property list: $ cd
/var/folders/pm/pwvftt8s1vbg4q6nj04blyym0000gn/T/
IDEDistributionOptionThinning.\~\~\~WPqMdz/Payload && /usr/bin/plutil -convert binary1 -o - -- GalShare.iOS.app/LaunchScreen.storyboardc/Info.plist
Status: pid 7230 exit 1
Stdout:
GalShare.iOS.app/LaunchScreen.storyboardc/Info.plist: Property List error:
Cannot parse a NULL or zero-length data / JSON error: No value.
Stderr:
The problem was that there was no valid image in the spashscreen.. adding an image fixed the problem
I'm trying to run the ionic 2 application on the simulator from the terminal using the following command line ionic cordova run ios.
The application is built successfully and the simulator is showing up!
But the application is not installed and I got the following error inside the terminal
The request to open "com.curlybrackets.rnbemitter" failed. The request
was denied by service delegate (SBMainWorkspace) for reason: NotFound
("Application "com.curlybrackets.rnbemitter" is unknown to
FrontBoard"). Underlying error (domain=FBSOpenApplicationErrorDomain,
code=4): The operation couldn’t be completed. Application
"com.curlybrackets.rnbemitter" is unknown to FrontBoard. Application
"com.curlybrackets.rnbemitter" is unknown to FrontBoard.
com.curlybrackets.rnbemitter: -1
I'm using the following versions:
cordova 8.0.0
ionic cli 4.0.1
Any idea why the error above occurred?
Thanks.
I had the same problem running the Simulator from Terminal. I have fixed that by opening my project on Xcode and starting the Simulator from there (just run the app).
It had to do that only once. After that, app always starts correctly from Terminal.