Quantcast
Channel: Xamarin.Mac — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 1429

Copy command causing app bundle to not get created

$
0
0

Answer:
For anyone that runs into an issue like this attempting to copy files into the bundle....the answer may be found by following the example found at the following git repository:

https://github.com/xamarin/mac-samples/tree/master/UseMSBuildToCopyFilesToBundleExample

I'm not 100% sure why the cp -r command is nuking the app bundle, maybe someone far smarter than I can answer that when they see this post...

Hi All,

After upgrading to the Unified API and switching from using MDtool to using MSBuild I've had to change the syntax I use for my pre and post build events (from the CustomCommand syntax to the Target syntax). As part of my application, I copy a dylib file into my *.App/Contents/MonoBundle folder. Previously when I was using the old CustomCommand syntax in conjunction with MDTool the following line worked just fine:

cp -R "../../../../ThirdPartyTools/hidapi/osx/32bit/" "${TargetDir}/Sync.app/Contents/MonoBundle/"

However, now when I wrap this command in the MSbuild Target syntax I get an error stating that the target directory does not exist. Upon further inspection it appears that my entire app bundle fails to get created when this single line exists as a post build event using Target syntax. When I remove the line, the app bundle is created just fine. I am thoroughly stumped, any suggestions?

-Isaiah


Viewing all articles
Browse latest Browse all 1429

Trending Articles