我有一个Xamarin iOS项目。我已将其升级到Unified 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
如果我可以添加更多详细信息,请告诉我。
答案 0 :(得分:0)
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中的成功构建。
对不起这个问题/答案的格式