简体   繁体   English

将Xamarin.forms iOS应用转换为Xcode应用

[英]Converting a Xamarin.forms iOS app into Xcode app

I am having a problem but can't seem to find the much-needed information online, having trawled through the internet. 我遇到了问题,但似乎无法通过互联网在网上找到急需的信息。 I have Xamarin.forms iOS app that I want to test. 我有要测试的Xamarin.forms iOS应用程序。 I cannot run iOS in windows so transferred to mac. 我无法在Windows中运行iOS,因此已转移到Mac。

To inspect elements in the app, I need to open the app in Xcode or appium inspector, so I created an Xcode project from the source control containing the Xamarin.forms iOS app. 要检查应用程序中的元素,我需要在Xcode或appium inspector中打开该应用程序,因此我从包含Xamarin.forms iOS应用程序的源代码控件中创建了一个Xcode项目。 I ran the project and the build was successful. 我运行了该项目,构建成功。

I deployed the compiled app to an iOS simulator and it deployed okay. 我将编译后的应用程序部署到iOS模拟器中,并且部署成功。 This is where the problem is - The deployed app open in the simulator as a blank app showing a white screen with only the battery indicator and a clock showing at the top of the blank white screen. 这就是问题所在-已部署的应用程序在模拟器中作为空白应用程序打开,显示为白色屏幕,只有电池指示器,并且时钟显示在空白白色屏幕的顶部。 The app is not visible. 该应用程序不可见。

From research, I read that this blankness is due to the fact that I was trying to open a Xamarin built app in a native Xcode. 从研究中,我读到这种空白是由于我试图在本机Xcode中打开Xamarin构建的应用程序。 In this case, how can I convert this Xamarin.forms iOS app into a native Xcode app so I can open it in an Xcode simulator? 在这种情况下,如何将Xamarin.forms iOS应用程序转换为本地Xcode应用程序,以便可以在Xcode模拟器中打开它? I will appreciate any helpful input 我将不胜感激任何输入

That is not how it supposed to work, You only need the mac to compile no to run the project. 那不是它应该如何工作的,您只需要mac编译no就可以运行项目。 You need to connect your windows machine to the mac using your LAN and just send the code to it to compile it and retrieves back the code ready for you to open it in your windows machine iOS emulator. 您需要使用LAN将Windows计算机连接到Mac,然后将代码发送给Mac进行编译,然后取回代码以供您在Windows计算机iOS模拟器中打开。 Then you can debug to inspect your elements as desired. 然后,您可以调试以根据需要检查您的元素。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM