I installed Xamarin and was attempting to compile and run an empty app, but the compilation fails with an unknown error:
How can I fix this error?
Install the Xamarin Android Player and select it from the devices list instead of Nexus 10 Android 3.0
Download link, Installation guide
Related
I am new in flutter.I uses Xcode version-12.3 and flutter version Flutter 2.10.4.
when I build the project in Xcode I got an error Command PhaseScriptExecution failed with a nonzero exit code.
And when i try to build in terminal an error- Encountered error while building for device.
enter image description here
When I run the project in terminal it gives a warning:Your Flutter application is created using an older version of the Android
embedding. It is being deprecated in favor of Android embedding v2
will it make any difference to build my project.
I changed name of my VS 2019 project running on Mac (from PrismApp1 to something else) and now I can't run on iOS simulator. Tried to run on different simulator phone too. I searched for PrismApp1 in folder and on machine can't find anything... delete bin and obj folders and did a Build All. any ideas?
error HE0046: Failed to install the app 'com.companyname.PrismApp1' on the device 'iOS 13.2 (17B102) - iPhone 11 Pro': Failed to install the requested application
Note: it works if i deploy to my physical iPhone...
I had a similar issue with iPhone 13 emulator and iOS 15, where I couldn't deploy my app on the simulator, but it worked on a real device.
The error I was getting was:
error HE0046: Failed to install the app 'ma.myapp.app' on the device 'iOS 15.0 (19A339) - iPhone 13 mini': “Myapp” Needs To Be Updated
This is how I solved the issue.
I had this weird error after app was successfully compiled and it was simply due to a null variable involved in a plist command executed post build.
Just try to close and reopen VS, it worked for me.
My Cordova iOS builds had previously been running fine from the CLI, until I updated to macOS 10.13.4 and Xcode 9.3 (9E145). Now whenever I use
cordova run ios
The simulator will launch, but my app is not installed or run, and this message is displayed:
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.
After a minute or two, the process stops and the message then reads:
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "com.myapp.name" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.myapp.name" is unknown to FrontBoard").
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
The operation couldn’t be completed. Application "com.myapp.name" is unknown to FrontBoard.
Application "com.myapp.name" is unknown to FrontBoard.
Has anyone encountered this message specifically after installing Xcode 9.3? I've uninstalled and reinstalled Cordova, I've tried 'erase settings' within the simulator, and I've removed and added the iOS platform from my project.
The project will successfully build and run if I open the Xcode project file directly within Xcode. So currently it just seems to be a fault from launching the simulator from the Cordova CLI.
Any other tips/tricks?
I’m having a similar issue.
seeing this after I update to XCode 9.3 and build through cli
Error Domain=IDEProfileLocatorErrorDomain Code=1 “No profiles for ‘org.oclc.digby’ were found” UserInfo={NSLocalizedDescription=No profiles for ‘org.oclc.digby’ were found, NSLocalizedRecoverySuggestion=Xcode couldn’t find any iOS Ad Hoc provisioning profiles matching ‘org.oclc.digby’. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.}
When I bring the project up in XCode the signing is correct and not complaining.
Same issue, solved after install iOS 11.2 Simulator in Xcode preferences -> Components, then
ionic cordova run ios -l --target="iPhone-X"
After I have upgraded Xamarin Studio to version 6.3 (build 864) most of the UITests (which have been working fine) are failing. I get the following errors:
SetUp : System.Exception : Unable to contact test backend running in app. A common cause is that the app is not properly linked with Calabash. Please verify that it includes the Calabash component.
SetUp : Calabash.XDB.Core.Exceptions.DeviceAgentException : Failed to install DeviceAgent
ExitCode: 5
-a,--app-path <path/to/app-bundle.app or path/to/app.ipa> Path .app bundle or .ipa
-c,--codesign-identity <codesign-identity> [OPTIONAL] Identity used to codesign app bundle [device only]. Deprecated - should use profile path. DEFAULT=
-d,--device-id <device-identifier> [OPTIONAL] iOS Simulator GUIDs
-p,--profile-path <path/to/profile.mobileprovision> [OPTIONAL] Path to provisioning profile
-u,--update-app <true-or-false> [OPTIONAL] When true, will reinstall the app if the device contains an older version than the bundle specified DEFAULT=1
install <device_id> <app_id> <profile_path> <codesign_id> <resign_object>
Error checking if application is installed: Error Domain=com.facebook.FBSimulatorControl Code=0 "Application with bundle ID 'com.apple.test.DeviceAgent-Runner' is not installed" UserInfo={NSLocalizedDescription=Application with bundle ID 'com.apple.test.DeviceAgent-Runner' is not installed, NSUnderlyingError=0x7fc0d46a88a0 {Error Domain=NSMachErrorDomain Code=-308 "(ipc/mig) server died"}}
According to error 1: My app is properly linked with calabash, this because it has been working on other versions of Xamarin Studio.
According to error 2: I can see Xamarin has installed the deviceAgent app on the simulator, but for some reason the installation has failed.
Can anyone provide me a solution?
I have already seen the "Error checking if application is installed:". The issue appeared when iOS 12.0.1 went live because the Xamarin.UITest package needed an update (from Xamarin.UITest 2.2.6 to 2.2.7).
"Unable to connect to testing backend" error might be caused by build configurations, maybe you have some compilation constants(#IF DEBUG) and calabash is started only in Debug mode, while you're trying to run on Release, might be worth checking.
"Device Agent Failed to install/launch" is a random error that can happen from time to time, when I encounter this I usually fix it:
Deleting App and Device Agent and running again
Quit Simulator
Quit VS and Restart
MacBook Restart.
Hope this helps!
until today I could easily build iOS apps from my Windows-PC with remotebuild to my Mac and build it on the connected iPad on my Mac. But now i updated all devices (Mac, iPad) and suddenly it stopped working. When i want to build in Visual Studio i get this message:
Severity Code Description Project File Line Suppression State
Error Remote build error from the build server Build failed with error Error code 65 for command: xcodebuild with args: -xcconfig,/Users/grafikschulung/.taco_home/remote-builds/taco-remote/builds/877/cordovaApp/platforms/ios/cordova/build-debug.xcconfig,-project,memoxx.xcodeproj,ARCHS=armv7 arm64,-target,memoxx,-configuration,Debug,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/grafikschulung/.taco_home/remote-builds/taco-remote/builds/877/cordovaApp/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/grafikschulung/.taco_home/remote-builds/taco-remote/builds/877/cordovaApp/platforms/ios/build/sharedpch: {1} Katalog C:\Users\m.hüttl\Documents\Visual Studio 2015\Projects\Katalog - Kopie\Katalog\MDAVSCLI 1
When I copy the project-folder to my Mac and import it into xCode and choose a development-team and build it from xCode it works perfect...
I believe until Cordova CLI is updated for Visual Sudio with the Xcode 8 changes you will have this issue. Darryl Pogue did write a hook if you want to follow his instructions on his site which might fix the development team issue you are having.
There are a couple other suggestions on the following Stack Overflow page that might give you other options such as changing settings in the Xcode project.
Code Sign Error on Xcode 8 and iOS 10 Cordova Project