如何使用MAC在真实设备中构建和部署ios api文件 [英] How to build and deploy an ios api file in real device using MAC
问题描述
我是mac新手,所以我已经安装了xcode并成功添加了ios平台。
i am new to mac, so for i have installed xcode and successfully added the platform for ios.
当我给 adb devices
我无法检测到iphone的设备名称,但是当我连接android并提供 adb设备
我正在获取我的设备。
When i give adb devices
i am not able to detect my device name for iphone but when i connect android and give adb devices
i am getting my device .
当我给 ionic build ios
我收到以下错误。我不知道如何在iphone中启用开发者选项
when i give ionic build ios
i'm getting the following errors. i don't know how to enable the developer option in iphone
===构建目标myFirst of PROJECT myFirst WITH CONFIGURATION Debug ===
=== BUILD TARGET myFirst OF PROJECT myFirst WITH CONFIGURATION Debug ===
检查依赖关系
签署myFirst需要开发团队。在项目编辑器中选择一个开发团队。
SDK'iOS 10.3'中的产品类型'Application'需要代码签名
Signing for "myFirst" requires a development team. Select a development team in the project editor. Code signing is required for product type 'Application' in SDK 'iOS 10.3'
**存档失败**
以下构建命令失败:
检查依赖项
(1次失败)
The following build commands failed: Check dependencies (1 failure)
错误:命令的错误代码65:xcodebuild使用args:-xcconfig,/ Users / subbarao / Desktop / myFirst / platforms / ios / cordova / build-debug.xcconfig,-workspace,myFirst.xcworkspace,-scheme,myFirst,-configuration,Debug,-destination,generic / platform = iOS的,-archivePath,myFirst.xcarchive,归档,CONFIGURATION_BUILD_DIR = /用户/的Subbarao /桌面/ myFirst /平台/ IOS /建造/设备,SHARED_PRECOMPS_DIR = /用户/的Subbarao /桌面/ myFirst /平台/ IOS /建造/ sharedpch
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/subbarao/Desktop/myFirst/platforms/ios/cordova/build-debug.xcconfig,-workspace,myFirst.xcworkspace,-scheme,myFirst,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,myFirst.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/subbarao/Desktop/myFirst/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/subbarao/Desktop/myFirst/platforms/ios/build/sharedpch
推荐答案
您需要在构建计算机上使用开发配置文件。应用程序可以在没有配置文件的情况下在模拟器上运行,但它们需要在实际设备上运行。
You need a development provisioning profile on your build machine. Apps can run on the simulator without a profile, but they are required to run on an actual device.
如果您在Xcode中打开项目,它可能会自动设置配置为你。否则,您必须创建转到iOS开发中心并创建个人资料。
If you open the project in Xcode, it may automatically set up provisioning for you. Otherwise you will have to create go to the iOS Dev Center and create a profile.
cordova运行ios错误..错误代码65 for command:xcodebuild with args:
这个家伙在这里同样的问题
尝试在Xcode中以ios开发帐号登录
Same question here by this guy Try to sign in as ios dev account in Xcode
或尝试
离子平台删除ios
离子平台添加ios
我得到了同样的错误,但我尝试了上面的命令,现在正在工作
谢谢
i was getting the same error but i tried the above command and its working now thanks
这篇关于如何使用MAC在真实设备中构建和部署ios api文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!