I am unable to run iOS App from VS 2015 on Windows. I can see the Mac agent is connected to my Mac but there is following error in the log file. Can someone please advise what is going wrong here?
Xamarin.Messaging.VisualStudio.MessagingFileManager Error: 0 :
[2016-12-16 17:53:15.3687] An error occurred downloading files for App
App3 System.IO.FileNotFoundException: The file
'/var/empty/Library/Caches/Xamarin/mtbs/builds/App3/c401707f0c87e530ed45cad421856e4f/obj/iPhoneSimulator/Debug/build-signature/signature'
was not found on the Mac.
I was able to build the application but it was not launching iOS simulator and the log was pointing to error mentioned above. After #AlanClark's comment, I started examining the contents of folders on my mac. There are two places where the contents of the app are copied on Mac.
/var/empty/Library/Caches/Xamarin/mtbs/builds/App3/c401707f0c87e530ed45cad421856e4f/
/Users//Library/Caches/Xamarin/mtbs/builds/App3/c401707f0c87e530ed45cad421856e4f/
I noticed that there was obj folder in location 2 but it was not there in location 1. I manually copied the obj folder and I could launch the app after that. Still trying to figure out why obj folder is missing from location 2.
Related
Unfortunately, I've deleted my react native project with Xcode may it be the .xcworkspace file or .xcodeproj. file
So in order to get my project back with .xcodeproj, I had to rename my project eject and update react native. Having said that I am able to load the emulator but the project is still not present in the emulator. How do I reintegrate it back?
Here is the error that is seen on 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
I have deleted my project on Xcode may it be .xcworkspace or .xcodeproj.
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:
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
The process you need to follow is so similar to renaming a react native app. Basically you just need to run react-native upgrade in your root project directory. For further info you can check another question here. The instructions below explains how to create another react native project based on a copied one with a new name.
First copy the directory which your to-be-name-changed application exists. And go to your newly cloned directory.
Change the name at index.ios/android.js file which is given as a parameter to AppRegistry.
Change the name and version accordingly on package.json
Delete /ios and /android folders which are remaining from your older app.
Run $react-native upgrade to generate /ios and /android folders again.
Run $react-native link for any native dependency.
Finally run $react-native run-ios or anything you want.
Courtesy of
https://stackoverflow.com/questions/42506068/how-can-i-regenerate-ios-folder-in-react-native-project
I've tried on 3 different computers but it still has the same problem that prevents me from running the project on the Mac. When I use Windows and connect to my Mac to run, it shows the same error on all 3 computers.
The error message displayed:
Can not resolve reference: /Library/Frameworks/Xamarim.iOS.framework/Versions/Current/lilb/mono/Xamarin.iOS/Facades/System.Memory.dll
Quick fix steps
VS on PC:
in iOS poject open References list
find Xamarin.iOS and check the path in properties
open containing folder, open Facades folder, copy System.Memory.dll
Mac:
open Finder and Go > Go to folder... > type Library
find:
Library/Frameworks/Xamarim.iOS.framework/Versions/Current/lilb/mono/Xamarin.iOS/Facades/
paste System.Memory.dll
.. rebuild and you are good to go
From what I understand, this is usually do to a pending update for Xcode.
Make sure Xcode is installed and updated. Once it is updated, launch Xcode to ensure that all updates are finished(I don't know why, but a lot of times you have to run Xcode for the update to finalize.)
Then clean and rebuild your project. That should fix the issue.
I m trying to build ionic cordova app on windows. I have followed all the mentioned to run cordova app on windows emulator.
When I run cordova run windows through command line I get this error:
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(724,5): error : The OutputPath property
is not set for project 'SQLite3.UWP.vcxproj'. Please check to make sure that you have specified a valid combination o
f Configuration and Platform for this project. Configuration='debug' Platform='Win32'. You may be seeing this messag
e because you are trying to build a project without a solution file, and have specified a non-default Configuration or
Platform that doesn't exist for this project. [C:\Users\Puja.DESKTOP-1RKA5NV\Desktop\myApp\plugins\cordova-sqlit
e-storage\src\windows\SQLite3-Win-RT\SQLite3\SQLite3.UWP\SQLite3.UWP.vcxproj]
Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1
I have spend almost two days searching for this issue but could not found anything that work.
Any suggestion is appreciated.Thanks
Hi all I recieved this error when I tried to run the app on my iPhone.
Error launching remote program: No such file or directory (/Users/thephone/Library/Developer/Xcode/DerivedData/TemplateIpone-dnfacjtdklqktcazrpfyupofdryp/Build/Products/Debug-iphoneos/TemplateIpone.app/TemplateIpone).
I think I may have messed with the -Info.plist file.
I changed Bundle display name and bundle name, plus added my icon file name.
Anyone else have these issues?
J
PS: The App runs fine on the iPhone if I press the icon manually.
I too edited info.plist and got the same error. A restart of xcode fixed this problem.