Question

I have delevloped (for the past 7 years) a wxPython App that would like to distribute thru the Mac App Store. I am using Python2.7 and wxPython2.9.4 (cocoa). The App is the bundled using py2app. All looks good so far. The problem is that Application Loader rejects the Package because py2app bundles this dynamic library "libwx_osx_cocoau-2.9.4.0.0.dylib" that obviously contains ppc code and submissions must be intel only.

How can I bundle this app without the ppc code?

The --arch="intel" argument for py2app does not solve this problem.

How can I achieve this? The rest of the bundle is OK.

Thanks

Was it helpful?

Solution

Have you tried using lipo?

lipo -remove ppc libwx_osx_cocoau-2.9.4.0.0.dylib -output libwx_osx_cocoau-2.9.4.0.0.dylib.intel

you can then see if everything still works with the new output lib (renaming back to the original name of course)

If that is accepted by the loader you could add this to your build script so that ppc is removed after it is build each time.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top