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
Related
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.
this is the second part of a bigger problem where the first part was solved here React native project deleted on xcode, can't run "run-ios react-native".
I have deleted my project on Xcode may it be .xcworkspace or .xcodeproje.
Because of that, I had to delete IOS and android folders while downgrading, updating and re-upgrading my react version to re-install IOS and android folders.
Thanks to that the emulator is working but unfortunately the project isn't present in the emulator and is still absent with Xcode. One thing to point out is that the simulator only appears when ran in the integrated terminal and nor in general terminal after cd-ing in the project folder.
Can anyone please help re-integrating the project in the emulator and on Xcode please.
Here is the error when the emulator is running in a general terminal:
error Command failed: xcrun instruments -s
xcrun: error: Failed to determine realpath of '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk' (errno=No such file or directory)
xcrun: error: unable to find utility "instruments", not a developer tool or in PATH
Here is the error for building the project within emulator when ran from VS code integrated terminal:
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 project.xcodeproj
In Xcode, select Xcode menu, then Preferences, then Locations tab. Click on the advanced button, select legacy and exit Xcode.
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"
I am tryign to build and run under the Debug profile.
So my Xcode is up to date 9.2 (9C40b). Checked the app store and the developer portal, no updates to it. Visual Studio Community is also up to date at 7.3.2 (build 12) (stable channel)
Connecting my iPhone with only Xcode Running does not update anything as I have seen between other version updates.
Visual Studio Community outputs the following info.
Connected to: Dev iPhone
error MT1108: Could not find developer tools for this 11.2.1 (15C153) device. Please ensure you are using a compatible Xcode version and then connect this device to Xcode to install the development support files.
Is anyone else running into this? If so, how have you addressed it?
... later ...
The plot thickens. So I rebooted the phone, now I get this error on app startup:
dyld: Library not loaded: #rpath/libmonosgen-2.0.dylib
required code signature missing.
Per this bug:
https://bugzilla.xamarin.com/show_bug.cgi?id=26404
If I disable Incremental Builds on the iOS project, the afore mentioned error is no more.
...later still ...
Clearing Derived Data
cd ~/Library/Developer/Xcode/DerivedData && rm -rf *
rm -rf ~/Library/Caches/com.apple.dt.Xcode
And cleaning the project seemed to do the trick.
Recently I upgraded my components (Cordova, node.js, Ionic, etc.) on my Windows 10 computer and on my Mac in order to be (more or less) up-to-date.
Using Visual Studio 2015 I am developing a hybrid mobile app, which can be built when it comes to Android.
However when I start remotebuild --secure false on my Mac and try deploying the files from my Windows PC it finally fails with the following errors:
Severity Code Description Project File Line Suppression State
Error /Users/joey/.cordova/lib/npm_cache/cordova-ios/4.5.3/package/bin/create Command failed with exit code 1 MY-NICE-APP V4 C:\_develop\MY-NICE-APP_V4\MDAVSCLI 1
Severity Code Description Project File Line Suppression State
Error Error: Remote build error from the build server Build failed with error /Users/joey/.cordova/lib/npm_cache/cordova-ios/4.5.3/package/bin/create: Command failed with exit code 1 - MY-NICE-APP V4 1
The following has to be mentioned as well:
Prior to the upgrade all went well.
The way I deploy in Visual Studio is either 'Release - iOS - Remote Device' or 'Release - iOS - Simulator iPhone 5'. The error is the same.
When deploying to Ripple locally all works well.
On Mac I can see the commands GET /cordova/build/tasks/21740 200 5.020 ms - 689 or similiar, which proves that the connection between Mac and PC works.
In the target folder '/Users/joey/.taco_home/remote_builds/21740/cordovaApp' I see all files/folders, which have to be there. However the most important folder '(...)/cordovaApp/platforms' is empty.
I suspect a problem on my Mac in regards to Cordova, but am helpless what in detail.
Here are some config details regarding my Mac:
node.js: 0.12.9
npm: 2.14.9
cordova: 6.5.0
ios-sim: 6.1.2
ionic: 2.2.1
Note that above Cordova shows something with 4.5.3, even I have a newer version running (6.5.0)...
Having spent hours of debugging I fixed the issue by updating node.js, npm and remotebuild on my Mac. However I ran into a different problem, which I will describe in another thread.