【问题标题】:How to get more detail about 64bit Xamarin iOS build failing?如何获取有关 64 位 Xamarin iOS 构建失败的更多详细信息?
【发布时间】:2015-05-18 08:20:42
【问题描述】:

我有一个 Xamarin iOS 项目。我已将其升级为统一 API。它在针对 32 位平台时构建,但在 32+64 位构建时失败。根据输出,当 IBtool 尝试编译接口定义时它会失败。您能否让我了解如何获取更多详细信息以查看这些故事板中需要修复的内容?我得到的错误是:

Error executing tool '/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool': Argument cannot be null. Parameter name: unformatted (MyApp.iOS)

输出是:

Building target "_CoreCompileInterfaceDefinitions" in project "<My project's .csproj>" ("/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets"); "_CompileInterfaceDefinitions" depends on it. 
Target _CoreCompileInterfaceDefinitions:
Task "IBTool"
    Using task IBTool from Xamarin.MacDev.Tasks.IBTool, Xamarin.MacDev.Tasks, Version=1.0.5595.8224, Culture=neutral, PublicKeyToken=null
    IBTool Task
      AppManifest: Info.plist
      InterfaceDefinitions:
        Main.storyboard
        MainStoryboard_iPhone.storyboard
      IntermediateOutputPath: obj/iPhoneSimulator/Debug/
      IsWatchApp: False
      Platform: iPhoneSimulator
      ProjectDir: <My project path>
      ResourcePrefix: Resources
      SdkBinPath: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/Developer/usr/bin
      SdkRoot: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk
      SdkVersion: 8.3
    Tool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool execution started with arguments: --errors --warnings --notices --output-format xml1 --minimum-deployment-target 7.0 --target-device iphone --auto-activate-custom-fonts --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk --compilation-directory <My project path>/obj/iPhoneSimulator/Debug/ibtool <My project path>/Main.storyboard /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: error : Error executing tool '/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool': Argument cannot be null. Parameter name: unformatted
Task "IBTool" execution -- FAILED

如果我可以在帖子中添加更多详细信息,请告诉我。

【问题讨论】:

    标签: ios xamarin xamarin.ios uistoryboard libtool


    【解决方案1】:

    Mac 上的 Xamarin Studio 构建仍然失败并出现错误:

    Error executing tool '/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool': Argument cannot be null. Parameter name: unformatted (MyApp.iOS)
    

    为了获得更多详细信息,我尝试在终端中运行:

    /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --output-format xml1 --minimum-deployment-target 7.0 --target-device iphone --auto-activate-custom-fonts --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk --compilation-directory /MyProjectPath/obj/iPhoneSimulator/Debug/ibtool /MyProjectPath/Main.storyboard
    

    终端打印 plist 并带有与 Xcode 设计器一致的警告,但在此之前它给出了这个错误:

    nwi_state: registration failed (1000000) Interface Builder Cocoa Touch Tool ***storageTaskManagerExistsWithIdentifier:withIdentifier failed: Error Domain=NSCocoaErrorDomain Code=4099 "The operation couldn’t be completed. (Cocoa error 4099.)" (The connection to service named com.apple.nsurlstorage-cache was invalidated.) {NSDebugDescription=The connection to service named com.apple.nsurlstorage-cache was invalidated.}; { NSDebugDescription = "The connection to service named com.apple.nsurlstorage-cache was invalidated."; }
    

    从终端获得输出后,我尝试再次在 Xamarin 中运行构建,它工作正常。我尝试切换构建配置和分支,并且能够重新创建第一个错误,然后是终端错误,然后是 Xamarin 中的成功构建。

    抱歉这个问题/答案的格式

    【讨论】:

    • 这是解析ibtool 命令的输出时的错误。请提交一个带有测试用例的错误 (bugzilla.xamarin.com),我们会修复它(希望也能找到解决方法)。
    • 添加到bugzilla。感谢您调查。
    猜你喜欢
    • 2013-09-21
    • 1970-01-01
    • 1970-01-01
    • 2014-06-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-07-27
    • 1970-01-01
    相关资源
    最近更新 更多