microsoftconnect/intune-app-wrapping-tool-ios

iOS app Wrapping tool saying it is damaged

ericschrad1987 opened this issue · 24 comments

Hi Everyone. I downloaded the latest release of the iOS app wrapping tool and am getting the error that the disk is damaged and I must cancel or eject the disk. I have tried copying the path to terminal and running the script through terminal with no success. I also tried the clone link with no success.

I am running Mac OS High Catalina 10.15.2.

What can I do?

I have the same issue. macOS Catalina 10.15.3. Workaround is bypassing securitysettings by using CTRL+click on the executable, then clicking Open (this only needs to be done once), but that's not really best practice. What gives?

We have not been able to repro this issue. Could you attach a screenshot/video of the error you are getting?

Hi, i am having the same issue. Running macOS Catalina 10.15.3. Getting message that "IntuneMAMPackager is damaged". See screenshot. This stops me from being able to distribute my app. Is there any workaround until this is fixed?

dmg damaged

So we think this is a provisioning/signing issue on our side and we are working on a release that is signed correctly. A workaround until then is to either control-click on the executable and open anyway. Or once prompted you can go to System Preferences->Security and click open anyway on the button next to IntuneMAMPackager

@gastaffo I don't get any prompts in Security and Privacy.
Whens the next release expected?

+1

We cannot use the latest version (v12.2.0) too on multiple Mac computers because of error dialog "IntuneMAMPacker is damaged“.

But the previous version v12.0.18 works fine which can be download via Tag:12.0.18.

+1

We cannot use the latest version (v12.2.0) too on multiple Mac computers because of error dialog "IntuneMAMPacker is damaged“.

But the previous version v12.0.18 works fine which can be download via Tag:12.0.18.

This version worked for me, but required I mount it, run it once, it failed, then I went to Security & Privacy and allowed it. Then it was able to wrap.

Confirmation here that neither 12.2.0 nor 12.0.18 works on a fresh Catalina install.

Has this problem been solved by the release of 12.3.1?

I just tested this on MacOS 10.15.4 and the executable does run after CTRL-Clicking and Opening the executable from Finder first. Not very intuitive, but at the least, you can take that as the latest release does appear to have fixed this bug (for me).

Not super optimistic anyone from MS is reading this thread, but the way the app is packaged here is not ideal. Please don't package a command line app as an .app bundle if it's intended to be used from the command line.

Do you have to control click the executable for 12.3.1?

I did, yes.

What prompt did you see when you didn't use control-click?

When attempting to use the executable from the command line w/o control click, the executable was not authorized to run. When attempting to use the executable from Finder w/o control click, an executable warning presented with a message saying the executable was not verified, and could not be run.

Interesting, I wasn't able to reproduce on my machine but I'll see if someone can get a repro of that action.
Your on MacOS 10.15.4 and using version 12.3.1 correct?

Yeah, that's right

I was able to get it to run by cloning the project first, unfortunately, now I am see this issue:
zsh: illegal hardware instruction sudo ./MacOS/IntuneMAMPackager -i app/src/MyApplication.ipa -o -p -c

this is the command I gave:
./MacOS/IntuneMAMPackager -i app/src/MyApplication.ipa -o app/dist/MyApplicationWrapped.ipa -p app/src/MyApplication.mobileprovision -c "my sha1"

@paul590 you don't need sudo but try adding "-v true" to your command to see what the real error is.

@gastaffo I ran this tool successfully last week on macOS 10.15.4 and v12.3.1 with no prompts. Are you running it from the mounted volume or copying it to your disk?
Was on the phone to Microsoft doing this and it seemed to run smoother using the verbose switch as above also.

@GlennMillerNZ thank you for your reply. I stopped using sudo and also added the -v true command. Unfortunately, it did not give me any new information it provided me with the same error. I also switched back to bash from zsh and the error changed to:
Version of MACOSX is 10.15.4
Version of XCode installed is Xcode 11.4
Build version 11N132i

Illegal instruction: 4

Thank you again for your help!

@paul590 I'm not able to replicate this one sorry.
Possibly update xcode. Looks like you're on a beta version.

@GlennMillerNZ Thank you for letting me know. I updated my xcode to the latest version and unfortunately, still seeing this issue. I will continue digging into this issue!

@GlennMillerNZ would the wrapper be affected with the introduction of zsh in Mac OS? The reason I ask is because more developers on our team have migrated to Catalina and they are all encountering the same issue as I stated above. Please let me know. Thank you!

Hi @GlennMillerNZ I apologize for the multiple messages, have you or your team being able to encounter this and implement a fix? Please let me know thank you!

Closing this due to inactivity. Feel free to open again if issue persists.