首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在iOS设备中运行MOE项目时出错

在iOS设备中运行MOE项目时出错
EN

Stack Overflow用户
提问于 2017-03-07 03:51:53
回答 1查看 464关注 0票数 3

在模拟器中运行MOE (Multi)示例,但是对于iOS设备,我会得到这个错误,并在命令行终端中运行命令./gradlew moeIpaBuild

错误: MyProject具有冲突的配置设置。MyProject是自动签名的,但是供应配置文件iOS团队配置文件:*已经手动指定。在构建设置编辑器中将供应配置文件值设置为“自动”,或在项目编辑器中切换到手动签名。

代码语言:javascript
复制
###########
# ERROR LOG
###########

 FAILED
Build settings from command line:
    CODE_SIGN_IDENTITY = 864F8FAE90E6FC935B7B379A6DBD77555B8660ED
    CONFIGURATION_BUILD_DIR = /Users/path/to/the/samples/moe-project/moe/samples-java/LibGDXMissileCommand/ios/build/moe/xcodebuild/Debug-iphoneos
    DEVELOPMENT_TEAM = 53*******C
    DSTROOT = /Users/path/to/the/samples/moe/samples-java/LibGDXMissileCommand/ios/build/moe/xcodebuild/dst
    MOE_GRADLE_EXTERNAL_BUILD = YES
    OBJROOT = /Users/path/to/the/samples/moe/samples-java/LibGDXMissileCommand/ios/build/moe/xcodebuild/obj
    ONLY_ACTIVE_ARCH = NO
    PROVISIONING_PROFILE = ********-****-****-****-************
    SDKROOT = iphoneos10.2
    SHARED_PRECOMPS_DIR = /Users/path/to/the/samples/moe/samples-java/LibGDXMissileCommand/ios/build/moe/xcodebuild/shared_precomps
    SYMROOT = /Users/path/to/the/samples/moe/samples-java/LibGDXMissileCommand/ios/build/moe/xcodebuild/sym

=== BUILD TARGET LibGDXMissileCommand OF PROJECT LibGDXMissileCommand WITH CONFIGURATION Debug ===

Check dependencies
LibGDXMissileCommand has conflicting provisioning settings. LibGDXMissileCommand is automatically signed, but provisioning profile iOS Team Provisioning Profile: * has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor, or switch to manual signing in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.2'
Code signing is required for product type 'Application' in SDK 'iOS 10.2'

** BUILD FAILED **


The following build commands failed:
    Check dependencies
(1 failure)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ios:moeMainDebugIphoneosXcodeBuild'.

我只修改了ios中的"buil.gradle"的这个部分:

代码语言:javascript
复制
moe {
    xcode {
        mainTarget 'LibGDXMissileCommand'
        companyIdentifier 'com.mycompany'
        packageName 'com.mycompany.MyApp'
        //infoPlistPath '' // Absolute path to Info.plist file. If this arg is not set new Info.plist will be generated.
        deploymentTarget '9.0'
        xcodeProjectDirPath 'xcode'
        generateProject false
    }
    signing {
        // String, ID of the development team.
        developmentTeam='53*******C'

        // String, path to the provisioning profile.
        provisioningProfile='/Users/myuser/Library/MobileDevice/Provisioning Profiles/********-****-****-****-************.mobileprovision'

        // String, name of the signing identity
        signingIdentity='86********************************ED'
    }
}

在哪里可以找到build settings editor,或者如何在项目编辑器中切换到手动签名?

不必说developmentTeam、provisioningProfile和signingIdentity已经为常规的Xcode项目进行了测试。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-03-07 18:07:44

只需打开您的多操作系统引擎Xcode项目,转到Build Settings和设置团队,签署和验证配置文件发布和调试版本。如果您设置了自动附加条件,则xcode尝试使用应用程序包ID查找分发provisoring。

登录到developer.apple.com,并确保您有一个与绑定标识符匹配的分发Provisoring

如果您刚刚创建了附带条件配置文件,请转到Xcode Preferences -> Accounts,选择您的帐户/团队并单击“查看详细信息”。在出现的对话框中,单击“下载所有”按钮。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42639863

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档