简体   繁体   English

通过 Xcode 在 Iphone 上启动构建应用程序时出现问题

[英]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.

相关问题 通过设置为纵向模式的 xcode 在我的物理 iPhone 上启动 flutter 应用程序有效,但在通过 android studio 启动时无效 - Launching flutter app on my physical iPhone via xcode set in portrait mode works, but not when launching through android studio 无法运行 build/ios/iphoneos/Runner.app 尝试启动 Xcode 并选择“产品 > 运行”来解决问题 - Could not run build/ios/iphoneos/Runner.app on Try launching Xcode and selecting "Product > Run" to fix the problem 在“iPhone”启动应用程序 Xcode 11.3.1 上失去与调试器的连接 - Lost connection to the debugger on "iPhone" Launching App Xcode 11.3.1 通过QR码从iPhone应用程序启动Facebook页面 - Launching a Facebook page from an iPhone app via QR code 通过开发服务器上的Xcode在iPhone上测试应用程序 - Test app on iPhone via Xcode on development server Xcode没有启动我的应用程序进行调试 - Xcode is not launching my app for debugging 在模拟器上启动应用程序会导致Xcode崩溃 - Launching app on simulator crashes Xcode 从Xcode性能启动应用 - Launching an app from Xcode performance 应用程序 iOS 被 Apple 接受,在启动时崩溃,但在将 iPhone 插入 Mac/Xcode 后工作 - app iOS accepted by Apple, crashes at launching, but works after plugging iPhone to the Mac/Xcode 在xcode中的所有iPhone中无法正确启动启动屏幕 - not launching the splash screen correctly in all iPhone in xcode
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM