在El-capitan

时间:2015-12-30 09:30:27

标签: ios build mono runtimeexception osx-elcapitan

我有一个mac应用程序,通过它我生成ipa和apk builds.This应用程序运行良好,没有任何例外,当它在yosemite OS.Now升级到El-Capitan时,它给出一些未处理的例外。我正在使用xbuild命令为android和ios生成构建。我正在使用nstask来执行命令。这是我用来生成构建的代码。

NSTask *task=[[NSTask alloc]init];
task.launchPath=@"/library/Frameworks/Mono.Framework/Commands/xbuild";
task.arguments= @[@"/p:Configuration=AppStore",@"/p:Platform=iPhone",@"/p:BuildIpa=true",@"/target:Build",[NSString stringWithFormat:@"%@/xyz/xyz.sln",NSHomeDirectory() ]];

[task launch];
[task waitUntilExit];

以下是我的例外情况

Unhandled Exception:
Nested exception detected.
Original Exception: at (wrapper managed-to-native)
object.__icall_wrapper_mono_object_new_fast (intptr) <0x0004f>at Mono.XBuild.CommandLine.MainClass.Main (string[]) <0x00013>

Nested exception:at (wrapper managed-to-native) System.RuntimeType.getFullName (System.RuntimeType,bool,bool) <0x0006b>
at System.RuntimeType.ToString () <0x0002d>
at System.Exception.get_ClassName () <0x0002a>
at System.Exception.ToString () <0x0001f>

[ERROR] FATAL UNHANDLED EXCEPTION: Nested exception detected.
Original Exception: at (wrapper managed-to-native) object.__icall_wrapper_mono_object_new_fast (intptr) <0x0004f>at Mono.XBuild.CommandLine.MainClass.Main (string[]) <0x00013>

Nested exception:at (wrapper managed-to-native) System.RuntimeType.getFullName (System.RuntimeType,bool,bool) <0x0006b>
at System.RuntimeType.ToString () <0x0002d>
at System.Exception.get_ClassName () <0x0002a>
at System.Exception.ToString () <0x0001f>

只有当我升级到El-capitan OS时才会出现。以前在优胜美地这个代码运行正常。

我已经禁用了系统完整性保护,但是问题仍未解决。我不知道这个例外的来源。

注意:当我通过命令行工具生成构建时,它工作正常,没有任何异常意味着只有当我尝试使用代码生成构建时才会出现异常。谢谢

0 个答案:

没有答案