在iOS设备

时间:2017-03-07 03:51:54

标签: ios libgdx intel

在模拟器工作中运行MOE(多操作系统引擎)示例,但对于iOS设备,我收到此错误,以及在命令行终端中运行命令./gradlew moeIpaBuild

  

错误:MyProject具有冲突的配置设置。 MyProject是   自动签名,但配置配置文件iOS Team Provisioning   配置文件:*已手动指定。设置配置文件   值为"自动"在构建设置编辑器中,或切换到手动   在项目编辑中签名。

###########
# 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 mudule中的"buil.gradle"修改了这部分:

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或如何在项目编辑器中切换到手动签名?

不必说已经为常规Xcode项目测试了developmentTeam,provisioningProfile和signingIdentity。

1 个答案:

答案 0 :(得分:2)

只需打开您的Multi-OS Engine Xcode项目,转到Build Settings并设置团队,签名和发布配置文件以获取发布和调试版本。如果您设置了自动提供,xcode会尝试使用您的应用程序包ID找到Distribution Provisoring配置文件。

登录developer.apple.com并确保您拥有与您的Bundle Identifier匹配的 Distribution Provisoring配置文件

如果您刚创建了优待配置文件,请转到 Xcode首选项 - >帐户,选择您的帐户/团队,然后点击查看详情。在出现的对话框中,单击“全部下载”按钮。