Open Sparkier opened 6 years ago
hehe, just fun right, Nice thing about the cmake BundleUtilities is the very nice informative error messages :)
This could be python related, wrote this note some time back.. "Issue with the python lib, python as a sub app bundle inside of the framework which will give an error in the app validation. CPack will copy /usr/local/opt/python3/Frameworks/Python.framework/Versions/3.5/Python into the app but /usr/local/opt/python3/Frameworks/Python.framework/Versions/3.5/Python/Resources contains the embedded python app. By temporarily removing the Resources folder the packaging will work."
Might be of help....
Thanks, that was it (however you managed to find that out 😄), I think we can close this issue.
Well it took a bit off digging ;) Ideally we should have a automatic fix for this in our package system...
Probably yes, we fixed it directly in Travis for building the dmg that can be uploaded directly to git upon release, however, anyone building this themselves will run into the same issue. When doing this in CMake, however, since copying this happens automatically, one would have to remove this folder (at least temporarily) from this location. I don't know if auto-removing something with CMake deep in /usr/local/ is a good idea.
Yes, exactly which is why the issue is still there...
Issue
On MacOS, even after disabling the UnitTests, the packaging does not work correctly. We get the following error:
Additionally to building on a local machine, we have done this build on Travis, where you can directly look at the build result. https://travis-ci.org/onc/inviwo/builds/428512261
Steps to reproduce
Environment information