本文介绍了设备上的Nativescript iOS应用程序分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在没有Telerik平台和Apple开发人员资格的情况下运行Nativescript应用程序.在搜索Nativescript文档后,我唯一的解决方案被发现具有Apple的开发人员会员资格.

How to run a Nativescript App without Telerik Platform and Apple Developer Membership. After searching on the Nativescript Documentation the only solution Ifound is with a Developer Membership of Apple.

因此,在花了一点时间之后,我找到了一种解决方案,该解决方案涉及如何在没有telerik appbuilder或Apple Developer会员的情况下在设备上运行该应用程序.

So after stucking a time on this I found a solution on how to run the App on Device without telerik appbuilder or Membership of Apple Developer.

推荐答案

搜索了一段时间后,如何在没有iOS的情况下测试iOS上的Nativescript应用Telerik平台,没有Apple Developer Membership,也没有运气任何文档.我有一个解决方案,如果有人也想分享,我想分享一下.

After searching for a while on how to test a Nativescript App on iOS withoutTelerik Platform and no Apple Developer Membership, and no luck on any documentation. I have a got a solution which I would like to share if anyone is stuck on it too.

要求:MacOSX本机脚本XCode

Requirements:MacOSXNativeScriptXCode

在这篇文章中,我将使用NativeScript的Sample-Groceries应用程序.

For this post I will take the Sample-Groceries App of NativeScript.

  1. 部分-编译Nativescript应用

按照Nativescript的说明在Device Emulator上运行示例应用程序,在该模拟器上成功运行该应用程序后,您知道您已编译了XCode App.

Follow the instructions of Nativescript to run the sample app on a Device Emulator, after successfully running the App on the Emulator you know you have a compiled XCode App.

  1. 零件-准备配置文件

要获取有效的配置文件,您必须打开XCode.创建一个新项目(每个示例游戏):文件->新建->项目

To obtain a valid provisioning Profile you have to open XCode.Create a new Project (Game per example): File -> New -> Project

重要!之后,您必须在列表上选择iPhone:

Important! After that you have to select your iPhone on the list:

选择设备后,您必须修复问题.它说:找不到匹配的配置文件.点击按钮修复问题"

After selecting the device you have to fix a Issue.It says: No matching provisioning profiles found.Click the button "Fix Issue"

下一步是:

请注意Bundle标识符,我们需要将示例应用程序修改为此Bundle标识符.

Take note of the Bundle identifier, we need to modify the sample app to this Bundle Identifier.

现在您可以在XCode中关闭项目.之后,您应该可以查看帐户中的配置文件:XCode->首选项->帐户->查看详细信息

Now you can close the project in XCode.After this you should be able to view the provisioning profile in your account:XCode -> Preferences -> Accounts -> View Details

  1. 部分-在XCode中打开已编译的Nativescript应用

在Finder中找到您的样品食品应用程序.在文件夹中,您应该具有以下结构:

Locate your sample-groceries App in Finder.Inside the folder you should have this structure:

导航到平台"文件夹-> iOS

Navigate into Platforms folder -> ios

在ios文件夹中,您应该有一个XCode项目文件:

In the ios folder you should have a XCode project file:

使用XCode打开此项目文件.

Open this project file with XCode.

我们要做的是更改应用程序的Bundle标识符.在示例应用程序中,捆绑包标识符为"com.nativescript.groceries"

What we have to do is to change the Bundle identifier of our app.On the sample App the Bundle Identifier is "com.nativescript.groceries"

我们必须使用在2部分中创建的Bandle标识符来更改此设置.在这种情况下为"hagele.marc.groceries"

we have to change this with our Bandle Identifier created in the 2. Part.in this case "hagele.marc.groceries"

然后单击:产品->构建->分析

Then click on: Product -> Build For -> Profiling

开始建造

完成构建后,您应该能够运行NativeScript项目在您的设备上.

After finishing the Build you should be able to run your NativeScript projecton your Device.

XCode第一次有可能抱怨权限.请遵循XCode的说明.

The first time its possible that XCode complains about permissions.Follow the instructions of XCode.

之后,您将能够使用以下命令运行该应用程序:

After that you will be able to run the App with:

我希望它能对某人有所帮助!

I hope it helps somebody!

这篇关于设备上的Nativescript iOS应用程序分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 02:55