xcode 代码签名错误:找不到应用程序的配置文件。怎么解决?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/47140204/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Code Signing Error: No profiles for app were found. How to solve?
提问by Siyah
Check dependencies Code Signing Error: No profiles for 'com.app528054' were found:
Xcode couldn't find any iOS App Development provisioning profiles matching 'com.app528054'. Automatic signing is disabled and unable to generate a profile.To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.1'
检查依赖项代码签名错误:找不到“com.app528054”的配置文件:
Xcode 找不到任何与“com.app528054”匹配的 iOS 应用开发配置文件。自动签名已禁用且无法生成配置文件。要启用自动签名,请将 -allowProvisioningUpdates 传递给 xcodebuild。代码签名错误:SDK“iOS 11.1”中的产品类型“应用程序”需要代码签名
I don't get this error. I can build the app via xCode and I don't get any errors, except for the fact that I can't see my code changes in the app(as it's probably not synchronized because of the error above).
我没有收到这个错误。我可以通过 xCode 构建应用程序并且我没有收到任何错误,除了我无法在应用程序中看到我的代码更改的事实(因为它可能由于上述错误而未同步)。
When I try ionic cordova build ios
, though, it gives me this stacktrace.
ionic cordova build ios
但是,当我尝试时,它给了我这个堆栈跟踪。
I have signed the app with my Apple Developer account and thus that shouldn't be the problem.
我已经使用我的 Apple Developer 帐户签署了该应用程序,因此这应该不是问题。
Where can I match the profile of the app? How do I solve this?
我在哪里可以匹配应用程序的配置文件?我该如何解决这个问题?
回答by Mani
I'm getting this very same error on the cordova build ios
every time my iPhone is plugged in at that Mac I'm running the command.
cordova build ios
每次在我的 Mac 上插入 iPhone 时,我都会遇到同样的错误,我正在运行命令。
The iPhone will appear under Devices and Simulators in Xcode and apparently during the build its checked if u have a valid provisioning profile for that device.
iPhone 将出现在 Xcode 中的设备和模拟器下,显然在构建过程中会检查您是否拥有该设备的有效配置文件。
Unplugging the iPhone and the error is gone. Hope that helps someone.
拔下 iPhone,错误消失了。希望能帮助某人。
回答by Ralph Hinkley
I had a similar code-signing problem that I solved in XCode but could not get to build from a command line. I found the value in the "build.json" file that I needed to manually change to properly reflect the value I had set in XCode:
我有一个类似的代码签名问题,我在 XCode 中解决了这个问题,但无法从命令行构建。我在“build.json”文件中找到了我需要手动更改以正确反映我在 XCode 中设置的值的值:
"debug": {
"codeSignIdentity": "iPhone Developer",
"developmentTeam": "5QAC6D6FT5",
"packageType": "development",
"provisioningProfile":"[incorrect provisioning profile]",
"buildFlag": [
"EMBEDDED_CONTENT_CONTAINS_SWIFT = YES",
"ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO",
"LD_RUNPATH_SEARCH_PATHS = \"@executable_path/Frameworks\""
]
}
In my case, I had the correct blank (automatic?) setting in XCode but that blank setting was not picked up during a cordova build. Manually removing it from the build.json allowed the successfully signed build in cordova.
就我而言,我在 XCode 中有正确的空白(自动?)设置,但在cordova 构建期间没有选择该空白设置。从 build.json 中手动删除它允许在cordova 中成功签名构建。