[英]Problem with launching build app on Iphone via Xcode
I'm having a problem trying to run a compiled app on a real iPhone device through Xcode. When I try to start, I get a message:我在尝试通过 Xcode 在真实 iPhone 设备上运行已编译的应用程序时遇到问题。当我尝试启动时,我收到一条消息:
is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified.
为开发自动签名,但手动指定了冲突的代码签名身份 iPhone Distribution。 Set the code signing identity value to “Apple Development” in the build settings editor, or switch to manual signing in the Signing & Capabilities editor.
在构建设置编辑器中将代码签名身份值设置为“Apple Development”,或在签名和功能编辑器中切换为手动签名。
My application uses ionic, cordova. Xcode quietly sees the device.我的应用用的是ionic,cordova。Xcode悄悄看到设备。 In the Xcode section: “Signing & Capabilities -> Signing -> Team” I set my developer account.
在 Xcode 部分:“Signing & Capabilities -> Signing -> Team”我设置了我的开发者账户。 I also tried changing from “iOS Developer” to “Apple Developer” in the “Build Settings -> Code Signing Entitlements” section, but it still didn't fix the problem.
我还尝试在“Build Settings -> Code Signing Entitlements”部分从“iOS Developer”更改为“Apple Developer”,但它仍然没有解决问题。 Tell me, what could be the cause of the error?
告诉我,错误的原因可能是什么? And what else needs to be additionally configured to run the compiled application on a real device?
还有什么需要额外配置才能在真实设备上运行编译后的应用程序?
It has nothing to do with ionic, you need a development certificate for that app.它与离子无关,您需要该应用程序的开发证书。 Your app has a package name (ex: com.mycompany.myapp), that app ID must be registered in Apple ( https://developer.apple.com ), then you need to open XCode and log in with the same account with which you created the app ID.
您的应用程序名称为 package(例如:com.mycompany.myapp),该应用程序 ID 必须在 Apple 中注册( https://developer.apple.com ),然后您需要打开 XCode 并使用相同的帐户登录您创建的应用程序 ID。
If you mark Automatic signing, Apple should handle the rest for you (creating a development certificate and all) so you will be able to just run your app.如果您标记自动签名,Apple 应该为您处理 rest(创建开发证书等),这样您就可以运行您的应用程序。 However, if you choose manual signing, you'll have to go to developer.apple.com -> certificates -> create a new development certificate for that app -> download it -> double click to add that certificate to your Mac -> then run in xcode.
但是,如果您选择手动签名,则必须 go 到 developer.apple.com -> 证书 -> 为该应用程序创建一个新的开发证书 -> 下载它 -> 双击将该证书添加到您的 Mac ->然后运行xcode。
By the way, XCode has an annoying bug since a long time ago, where sometimes it does not detect the automatic signing and displays an error (a red little message).顺便说一句,XCode 很久以前就有一个恼人的错误,有时它不会检测到自动签名并显示错误(一条红色的小消息)。 If you switch to manual signing and then return to automatic signing, it should disappear.
如果您切换到手动签名然后返回到自动签名,它应该会消失。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.