无法从命令行构建Adhoc分发

时间:2016-09-09 15:29:01

标签: appcelerator

我正在尝试使用grunt插件使用grunt-appc-cli编写Appcelarator Alloy项目的IPA创建过程。

我的目标配置如下所示:

'dist-prod': {
                'command': "run",
                'args': [ 
                    '-p', 'ios',
                    '-T', 'dist-adhoc',
                    '-R', '<Dev Cert Name>',
                    '-P', '<Provisioning Profile UUID>',
                    '-O', './dist/prod/',
                    '--log-level', 'trace'
                ]
            },

运行这个笨拙的目标会陷入以下困境:

>> [INFO]  JavaScript files need to be encrypted
>> [INFO]  Creating Xcode project
>> [TRACE] Removing pre-compile phase
>> [TRACE] Adding 3 native module libraries
>> [TRACE] No extensions to add
>> [INFO]  Creating Entitlements.plist
>> [INFO]  Creating Info.plist
>> [INFO]  Disabling ATS
>> [INFO]  Creating main.m
>> [INFO]  Creating Xcode config files
>> [INFO]  Copying Titanium libraries
>> [INFO]  Copying Titanium iOS files
>> [TRACE] Skipping Classes/ApplicationRouting.m, it'll be processed later

过了一段时间,我必须Ctrl+C杀死而不产生IPA。

有关调试此问题的指示吗?

****更多信息**** 我尝试直接运行appc run cmd并最终收到以下错误消息:

$ appc run -p ios -T dist-adhoc -R "<Dev Cert Name>" -P "<Provisioning Profile UUID>" -O ../Svc --log-level trace

[ERROR] ** BUILD FAILED **
[ERROR] The following build commands failed:
[ERROR]         CompileC build/Intermediates/FSM.build/Release-iphoneos/FSM.build/Objects-norm
al/armv7/TiUIiOSProxy.o Classes/TiUIiOSProxy.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
[ERROR] (1 failure)

1 个答案:

答案 0 :(得分:0)

确保您在Xcode 7.3.1及更高版本和Titanium SDK 5.4 GA上运行 - 这应该可以解决您的问题。

点击此处查看更多详情 - https://jira.appcelerator.org/browse/TIMOB-23674

如果您仍然看到上述环境存在问题,请在JIRA票证中提供更多详细信息。