ios - 如何修复错误 : 'The app identifier "com. example.apple-samplecode.BreakfastFinder“无法注册到您的开发团队。”

标签 ios xcode sample build-error xcconfig

当我尝试从 Apple 构建 BreakfastFinder 示例代码时,它会为模拟器构建它,但不会为我的 iPhone X 和 IOS 13(Public Beta 3)构建。

我尝试取消配对并修复设备,将标识符从"com.example.apple-samplecode.BreakfastFinder"com.<myID>.TestApp2
从这里下载项目示例:https://developer.apple.com/documentation/vision/recognizing_objects_in_live_capture

只有在崩溃后我才更改了构建标识符。

我希望构建完成并运行,但它给了我这些错误。
来自 Xcode 的两个错误:

  1. Failed to register bundle identifier. The app identifier "com.example.apple-samplecode.BreakfastFinder" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.
  2. No profiles for 'com.example.apple-samplecode.BreakfastFinder' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.example.apple-samplecode.BreakfastFinder'.

最佳答案

优雅的解决方案

  • 如果您添加 SAMPLE_CODE_DISAMPIGUATOR key 在您的目标下 Build Settings 作为 User-Defined 条目,那么您不需要添加您的 开发团队 手动在 SampleCode.xcconfig 文件。
  • 当您在 Signing & Capabilities 下选择团队时它会自动填充 开发团队 SampleCode.xcconfig 文件。
  • 瞧!

  • 最好的事物。

    关于ios - 如何修复错误 : 'The app identifier "com. example.apple-samplecode.BreakfastFinder“无法注册到您的开发团队。”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57141315/

    相关文章:

    android - MediaScannerConnection 产生 android.app.ServiceConnectionLeaked

    ios - 用户定义的运行时属性中的关键路径是什么?

    ios - 用户登录后更新 Root View Controller + iOS 13 及更高版本

    ios - 调整导航后退按钮 iOS 13

    ios - 如何重新创建 xcdatamodeld

    python - 如何在Python中查找不属于样本的值?

    iphone - AFNetworking setImageWithURLRequest 下载进度

    iphone - iOS 将数据从 tableview 传递到新 View

    ios - AVPlayer 状态总是 AVPlayerStatusReadyToPlay

    algorithm - 不放回重复取样