Hi All,
I'm attempting to upgrade an old app that uses XamMac.dll to the new Xamarin Unified API. After converting the application to the Xamarin Unified API and targeting .Net 4.5.1 I am running into an issue on my build server where the the executable doesn't seem to be generated for an unknown reason. I have noticed in the build log that right before the step that attempts to compile the executable, a post build step that runs a custom script we use to copy resource (language) files into the .app errors out stating that *.app/Contents/MonoBundle doesn't exist. Any advice would be greatly appreciated.
Edit: Including snippit of build log:
[13:40:10][Step 5/5]
[13:40:10][Step 5/5] Target _CompileAppManifest:
[13:40:10][Step 5/5] CompileAppManifest Task
[13:40:10][Step 5/5] AppBundleName: App
[13:40:10][Step 5/5] AppBundleDir: bin/Release/App.MacNib.app
[13:40:10][Step 5/5] AppManifest: Info.plist
[13:40:10][Step 5/5] Architecture: x86_64
[13:40:10][Step 5/5] AssemblyName: App.MacNib
[13:40:10][Step 5/5] BundleIdentifier: com.Redacted.com.RedactedSync
[13:40:10][Step 5/5] IsAppExtension: False
[13:40:10][Step 5/5] PartialAppManifests:
[13:40:10][Step 5/5]
[13:40:10][Step 5/5] Target _CompileToNative:
[13:40:10][Step 5/5] Mmp Task
[13:40:10][Step 5/5] AppBundleDir: bin/Release/App.MacNib.app
[13:40:10][Step 5/5] ApplicationAssembly: bin/Release/App.exe
[13:40:10][Step 5/5] ApplicationName: App
[13:40:10][Step 5/5] Architecture: x86_64
[13:40:10][Step 5/5] ArchiveSymbols:
[13:40:10][Step 5/5] Debug: False
[13:40:10][Step 5/5] ExplicitReferences:
[13:40:10][Step 5/5] /Library/Frameworks/Mono.framework/Versions/5.8.0/lib/mono/4.5-api/System.dll
[13:40:10][Step 5/5] /Library/Frameworks/Mono.framework/Versions/5.8.0/lib/mono/4.5-api/System.Xml.dll
[13:40:10][Step 5/5] /Library/Frameworks/Mono.framework/Versions/5.8.0/lib/mono/4.5-api/System.Xml.Linq.dll
[13:40:10][Step 5/5] ../packages/log4net.2.0.3/lib/net40-full/log4net.dll
[13:40:10][Step 5/5] /Library/Frameworks/Mono.framework/Versions/5.8.0/lib/mono/4.5-api/Mono.Posix.dll
[13:40:10][Step 5/5] ../packages/Newtonsoft.Json.9.0.1/lib/net45/Newtonsoft.Json.dll
[13:40:10][Step 5/5] /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/reference/full/Xamarin.Mac.dll
[13:40:10][Step 5/5] /Library/Frameworks/Mono.framework/Versions/5.8.0/lib/mono/4.5-api/System.Core.dll
[13:40:10][Step 5/5] /Applications/buildAgent/work/60984f3d7c625dc1/irs-common/Common.Attributes/bin/Release//Common.Attributes.Mono.dll
[13:40:10][Step 5/5] /Applications/buildAgent/work/60984f3d7c625dc1/irs-common/Common.Devices/Usb/Common.Devices.Usb/bin/Release//Common.Devices.Usb.dll
[13:40:10][Step 5/5] /Applications/buildAgent/work/60984f3d7c625dc1/irs-common/Common.Devices/Usb/Common.Devices.Usb.Factory/bin/Release//Common.Devices.Usb.Factory.dll
[13:40:10][Step 5/5] /Applications/buildAgent/work/60984f3d7c625dc1/irs-common/Common.Devices/Usb/Common.Devices.Usb.HIDAPI/bin/Release//Common.Devices.Usb.HIDAPI.dll
[13:40:10][Step 5/5] /Applications/buildAgent/work/60984f3d7c625dc1/irs-common/Common.Devices/Usb/Common.Devices.Usb.Windows/bin/Release//Common.Devices.Usb.Windows.dll
[13:40:10][Step 5/5] /Applications/buildAgent/work/60984f3d7c625dc1/WebCore/GeoPro/CrossPlatform/App.Sync/bin/Release//App.Sync.dll
[13:40:10][Step 5/5] /Applications/buildAgent/work/60984f3d7c625dc1/WebCore/GeoPro/CrossPlatform/SyncRestClient/bin/Release//SyncRestClient.dll
[13:40:10][Step 5/5] /Applications/buildAgent/work/60984f3d7c625dc1/irs-common/Common.Localize/bin/Release//App.Common.Localize.dll
[13:40:10][Step 5/5] /Applications/buildAgent/work/60984f3d7c625dc1/WebCore/GeoPro/CrossPlatform/App.Sync.Resources/bin/Release//App.Sync.Resources.dll
[13:40:10][Step 5/5] /Applications/buildAgent/work/60984f3d7c625dc1/WebCore/GeoPro/CrossPlatform/OsxInstallLocalizer/bin/Release//OsxInstallLocalizer.exe
[13:40:10][Step 5/5] /Library/Frameworks/Mono.framework/Versions/5.8.0/lib/mono/4.5-api//mscorlib.dll
[13:40:10][Step 5/5] ExtraArguments:
[13:40:10][Step 5/5] FrameworkRoot: /Library/Frameworks/Xamarin.Mac.framework/Versions/Current
[13:40:10][Step 5/5] I18n:
[13:40:10][Step 5/5] IntermediateOutputPath: obj/Release/mmp-cache
[13:40:10][Step 5/5] LinkMode: None
[13:40:10][Step 5/5] OutputPath: bin/Release/
[13:40:10][Step 5/5] SdkRoot: /Applications/Xcode.app/Contents/Developer
[13:40:10][Step 5/5] TargetFrameworkIdentifier: .NETFramework
[13:40:10][Step 5/5] TargetFrameworkVersion: v4.5.1
[13:40:10][Step 5/5] TLSProvider: Default
[13:40:10][Step 5/5] UseXamMacFullFramework: False
[13:40:10][Step 5/5] Profiling: False
[13:40:10][Step 5/5] AppManifest: Info.plist
[13:40:10][Step 5/5] SdkVersion: 10.12
[13:40:10][Step 5/5] NativeReferences:
[13:40:10][Step 5/5] IsAppExtension: False
[13:40:10][Step 5/5] Tool /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/bin/mmp execution started with arguments: /verbose /output:/Applications/buildAgent/work/60984f3d7c625dc1/WebCore/GeoPro/CrossPlatform/App.MacNib/bin/Release/ "/name:App" /profile:4.5.1 /arch:i386 --http-message-handler=HttpClientHandler /minos=10.7 /nolink /assembly:/Library/Frameworks/Mono.framework/Versions/5.8.0/lib/mono/4.5-api/System.dll /assembly:/Library/Frameworks/Mono.framework/Versions/5.8.0/lib/mono/4.5-api/System.Xml.dll /assembly:/Library/Frameworks/Mono.framework/Versions/5.8.0/lib/mono/4.5-api/System.Xml.Linq.dll /assembly:/Applications/buildAgent/work/60984f3d7c625dc1/WebCore/GeoPro/CrossPlatform/packages/log4net.2.0.3/lib/net40-full/log4net.dll /assembly:/Library/Frameworks/Mono.framework/Versions/5.8.0/lib/mono/4.5-api/Mono.Posix.dll /assembly:/Applications/buildAgent/work/60984f3d7c625dc1/WebCore/GeoPro/CrossPlatform/packages/Newtonsoft.Json.9.0.1/lib/net45/Newtonsoft.Json.dll /assembly:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/reference/full/Xamarin.Mac.dll /assembly:/Library/Frameworks/Mono.framework/Versions/5.8.0/lib/mono/4.5-api/System.Core.dll /assembly:/Applications/buildAgent/work/60984f3d7c625dc1/irs-common/Common.Attributes/bin/Release/Common.Attributes.Mono.dll /assembly:/Applications/buildAgent/work/60984f3d7c625dc1/irs-common/Common.Devices/Usb/Common.Devices.Usb/bin/Release/Common.Devices.Usb.dll /assembly:/Applications/buildAgent/work/60984f3d7c625dc1/irs-common/Common.Devices/Usb/Common.Devices.Usb.Factory/bin/Release/Common.Devices.Usb.Factory.dll /assembly:/Applications/buildAgent/work/60984f3d7c625dc1/irs-common/Common.Devices/Usb/Common.Devices.Usb.HIDAPI/bin/Release/Common.Devices.Usb.HIDAPI.dll /assembly:/Applications/buildAgent/work/60984f3d7c625dc1/irs-common/Common.Devices/Usb/Common.Devices.Usb.Windows/bin/Release/Common.Devices.Usb.Windows.dll /assembly:/Applications/buildAgent/work/60984f3d7c625dc1/WebCore/GeoPro/CrossPlatform/App.Sync/bin/Release/App.Sync.dll /assembly:/Applications/buildAgent/work/60984f3d7c625dc1/WebCore/GeoPro/CrossPlatform/SyncRestClient/bin/Release/SyncRestClient.dll /assembly:/Applications/buildAgent/work/60984f3d7c625dc1/irs-common/Common.Localize/bin/Release/App.Common.Localize.dll /assembly:/Applications/buildAgent/work/60984f3d7c625dc1/WebCore/GeoPro/CrossPlatform/App.Sync.Resources/bin/Release/App.Sync.Resources.dll /assembly:/Applications/buildAgent/work/60984f3d7c625dc1/WebCore/GeoPro/CrossPlatform/OsxInstallLocalizer/bin/Release/OsxInstallLocalizer.exe /assembly:/Library/Frameworks/Mono.framework/Versions/5.8.0/lib/mono/4.5-api/mscorlib.dll "/Applications/buildAgent/work/60984f3d7c625dc1/WebCore/GeoPro/CrossPlatform/App.MacNib/bin/Release/App.exe" /sdkroot /Applications/Xcode.app/Contents/Developer --cache /Applications/buildAgent/work/60984f3d7c625dc1/WebCore/GeoPro/CrossPlatform/App.MacNib/obj/Release/mmp-cache
[13:40:10][Step 5/5] Xamarin.Mac 2.10.0.105 (cycle8: 979cd55)
[13:40:10][Step 5/5] Selected target framework: .NETFramework,v4.5.1; API: Unified
[13:40:10]
[Step 5/5] Error - MMP:.error MM0007: The root assembly '/Applications/buildAgent/work/60984f3d7c625dc1/WebCore/GeoPro/CrossPlatform/App.MacNib/bin/Release/App.exe' does not exist
MM0007: The root assembly '/Applications/buildAgent/work/60984f3d7c625dc1/WebCore/GeoPro/CrossPlatform/App.MacNib/bin/Release/App.exe' does not exist
[13:40:10][Step 5/5] Error message is logged
[13:40:10][Step 5/5] Task "Mmp" execution -- FAILED
[13:40:10][Step 5/5] Done building target "_CompileToNative" in project "/Applications/buildAgent/work/60984f3d7c625dc1/WebCore/GeoPro/CrossPlatform/App.MacNib/App.MacNib.csproj".-- FAILED
Also, right before this the following happens:
[13:40:10][Step 5/5] Target PostBuildEvent:
[13:40:10][Step 5/5] Executing: cp -R "/Applications/buildAgent/work/60984f3d7c625dc1/WebCore/GeoPro/CrossPlatform/App.MacNib/../../../../ThirdPartyTools/hidapi/osx/32bit/" "App.app/Contents/MonoBundle/"
[13:40:10][Step 5/5] /bin/sh /Applications/buildAgent/work/60984f3d7c625dc1/WebCore/GeoPro/CrossPlatform/App.MacNib/copyLanguages.sh ""
[13:40:10][Step 5/5] cp: App.app/Contents/MonoBundle: No such file or directory
[13:40:10][Step 5/5] cp: /Applications/buildAgent/work/60984f3d7c625dc1/WebCore/GeoPro/CrossPlatform/App.MacNib/../../../../ThirdPartyTools/hidapi/osx/32bit/: unable to copy extended attributes to App.app/Contents/MonoBundle: No such file or directory
[13:40:10][Step 5/5] cp: App.app/Contents/MonoBundle/libhidapi.0.dylib: No such file or directory
[13:40:10][Step 5/5] cp: App.app/Contents/MonoBundle/libhidapi.a: No such file or directory
[13:40:10][Step 5/5] cp: App.app/Contents/MonoBundle/libhidapi.la: No such file or directory
[13:40:10][Step 5/5] find: ftsopen: No such file or directory