iOS 设备中的错误 运行 MOE 项目
Error running MOE project in iOS Device
运行 MOE(Multi-OS 引擎)示例在模拟器中工作,但对于 iOS 设备我收到此错误,以及 运行在命令行终端中命令 ./gradlew moeIpaBuild
。
Error: MyProject has conflicting provisioning settings. MyProject 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.
###########
# 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"
的这一部分:
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 项目进行了测试。
只需打开您的 Multi-OS 引擎 Xcode 项目,转到 Build Settings
并为发布和调试版本设置团队、签名和提供配置文件。如果您设置了自动供应,xcode 尝试使用您的应用程序包 ID 查找分发供应配置文件。
登录 developer.apple.com 并确保您拥有与您的捆绑包标识符匹配的 分发管理配置文件。
如果您刚刚创建了配置文件,请转到 Xcode 首选项 -> 帐户 、select 您的 account/team 并单击查看详细信息。在出现的对话框中,单击“全部下载”按钮。
运行 MOE(Multi-OS 引擎)示例在模拟器中工作,但对于 iOS 设备我收到此错误,以及 运行在命令行终端中命令 ./gradlew moeIpaBuild
。
Error: MyProject has conflicting provisioning settings. MyProject 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.
###########
# 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"
的这一部分:
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 项目进行了测试。
只需打开您的 Multi-OS 引擎 Xcode 项目,转到 Build Settings
并为发布和调试版本设置团队、签名和提供配置文件。如果您设置了自动供应,xcode 尝试使用您的应用程序包 ID 查找分发供应配置文件。
登录 developer.apple.com 并确保您拥有与您的捆绑包标识符匹配的 分发管理配置文件。
如果您刚刚创建了配置文件,请转到 Xcode 首选项 -> 帐户 、select 您的 account/team 并单击查看详细信息。在出现的对话框中,单击“全部下载”按钮。