Closed rotanov closed 3 years ago
Can you try using mlaunch (/Library/Frameworks/Xamarin.iOS.framework/Current/bin/mlaunch
) instead of mtouch?
Yes, it just works. Thank you. Is it documented somewhere?
That's great!
Is it documented somewhere?
Using mtouch directly to install or launch applications on device was never a supported option, which means there was never much documentation about it either (and that continues with mlaunch).
So I'm going to close this issue.
That's great!
Is it documented somewhere?
Using mtouch directly to install or launch applications on device was never a supported option, which means there was never much documentation about it either (and that continues with mlaunch).
So I'm going to close this issue.
As I mentioned it's support was and still is documented here https://docs.microsoft.com/en-us/xamarin/ios/deploy-test/mtouch#deploying-to-a-device
Steps to Reproduce
We executed mtouch from internal tool to upload bulds to the device. It stopped working a couple of years ago but people just stopped using tool and started doing builds with VS. I tried to fix it, so what changed is mtouch location. From
/Developer/MonoTouch/usr/bin/mtouch
to/Library/Frameworks/Xamarin.iOS.framework/Current/bin/mtouch
I'm not sure if this was mentioned in change logs of Xamarin.iOS./Library/Frameworks/Xamarin.iOS.framework/Current/bin/mtouch --sdkroot=/Applications/Xcode.app --installdev=<path_to_app>
It's not clear how do I get the list of possible target frameworks and the syntax.
And not mentioned here https://docs.microsoft.com/en-us/xamarin/ios/deploy-test/mtouch#deploying-to-a-device or here http://docs.go-mono.com/?link=man%3amtouch(1) (which first link refers to as reference for mtouch)
Trying to guess the arguments:
/Library/Frameworks/Xamarin.iOS.framework/Current/bin/mtouch --sdkroot=/Applications/Xcode.app --installdev=<path_to_app> --target-framework
Trying to guess further:
/Library/Frameworks/Xamarin.iOS.framework/Current/bin/mtouch --sdkroot=/Applications/Xcode.app --installdev=<path_to_app> --target-framework=Xamarin.iOS
Trying to guess further:
/Library/Frameworks/Xamarin.iOS.framework/Current/bin/mtouch --sdkroot=/Applications/Xcode.app --installdev=<path_to_app> --target-framework=Xamarin.iOS,v14.6.0.15
I've got the list of possible values. Though it's strange that Xamarin.iOS is still v1.0. I thought it's v14.6.0.15. Whatever.
/Library/Frameworks/Xamarin.iOS.framework/Current/bin/mtouch --sdkroot=/Applications/Xcode.app --installdev=<path_to_app> --target-framework=Xamarin.iOS,v1.0
Oh well.
Expected Behavior
I think what expected is:
Actual Behavior
Mtouch doesn't upload app to an iOS devices, error messages are not clear, there's nothing in Docs, it's not clear what to do, Versions are inconsistent.
Environment
I have .net 5 for Mac installed. Mac mini late 2014. XCode 12
Build Logs