适用于iOS的Cordova build-找不到配置文件 [英] Cordova build for iOS - No profile found

查看:89
本文介绍了适用于iOS的Cordova build-找不到配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了在MacOS上构建的cordova.该版本可在Android上正常运行,但构建iOS确实很痛苦.这是发生了什么:

I am confronted with a cordova builds on MacOS. The builds work fine for Android, but building iOS is really painful. Here is what happens:

>cordova build ios --device --debug --buildConfig ./build.json
.....
Check dependencies
No profile matching '******' found:  Xcode couldn't find a profile matching '******'. Install the profile (by dragging and dropping it onto Xcode's dock item) or select a different one in the General tab of the target editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.2'

这是所有内容(节点,cordova,cordova-ios,XCode等)的最新版本的全新安装.我已根据开发人员ID,团队,证书和置备配置文件进行了所有设置.所有这些工件都是有效的,我可以肯定知道,因为我正在将该构建版本从Intel XDK移到我的本地Mac计算机上.这是我的build.json:

This is a fresh install of latest versions of everything (node, cordova, cordova-ios, XCode, etc). I have everything set in terms of developer id, team, certificates and provisioning profiles. All those artifacts are valid and I know for sure because I am moving this build from Intel XDK into my local Mac computer. Here is my build.json:

{
    "ios": {
        "debug": {
            "provisioningProfile": "******",
            "developmentTeam": "******",
            "packageType": "development"
        },
        "release": {
            "provisioningProfile": "******",
            "developmentTeam": "*******",
            "packageType": "app-store"
        }
    }
}

我可以在XCode帐户首选项中看到我所有的配置文件.我还在/Users/me/Library/MobileDevices/Provisioning Profiles文件夹中看到了它们.我已经打开了XCode项目,并在构建设置"和常规"选项卡中调整了项目和目标的代码签名.供应配置文件在那里,团队ID在那儿.

I can see all my provisioning profiles in XCode account preferences. I also see them in /Users/me/Library/MobileDevices/Provisioning Profiles folder. I've opened XCode project and adjusted the code signing for project and target in Build Settings and General tabs. The provisioning profiles are there, the team ID is there.

我现在所要做的就是使cordova命令行正常工作.

All I need now is to make cordova command line work.

那么,如何使cordova和XCode合作?它在哪里寻找这些配置文件,为什么找不到它们?有什么作用?

So, how can I make cordova and XCode to cooperate? Where does it look for those profiles and why can't it find them? What gives?

推荐答案

我几乎已经放弃了,但是随后..魔术发生了.
通过将Cordova升级到7.0.1,将MacOS升级到10.12.5,将XCode升级到8.3.2,一切都已修复.
坦白说,我不知道发生了什么事情,主要的怀疑者是XCode-宇宙中最可怕的开发环境.

I've almost given up on this, but then.. magic happened.
Everything have fixed itself by upgrading Cordova to 7.0.1, MacOS to 10.12.5 and XCode to 8.3.2.
Frankly, I have no idea what was broken, the primary suspect is XCode - the most scary development environment in the universe.

这篇关于适用于iOS的Cordova build-找不到配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆