3

I wrote an app with flutter and it is running on my iPhone in debug mode. Now i want to send it to my employer, So i've create an ad-hoc version of my app and create a "Diawi" link. After that i did check the app on my device and the app is installed on my device but not working and keep crashing after tap on the app icon.

My app icon was a round icon and i did change it to square.

Here i found when checking windows->devices :

Exception Type: EXC_BAD_ACCESS (SIGKILL - CODESIGNING)

Exception Subtype: UNKNOWN_0x32 at 0x00000001046c1c80

.

.

.

Termination Reason: Namespace CODESIGNING, Code 0x2

Triggered by Thread: 13

Is it possible that it's related to creating a bad provisioning profile?

Is there anyone faced this problem?

Any help would be appreciated.

azim vaziri
  • 143
  • 1
  • 12

3 Answers3

3

The reason the app was crashing because when you execute flutter run the app runs in debug mode. Adhoc build requires release configuration in the flutter project.

When you run flutter build ios --release it sets the Xcode to release configuration post which you can create an Adhoc build and share it via diawi link.

Many people are struggling with this. I myself spent a few days figuring out what was the issue.

2

After a few days set back, I've finally found the reason for this error. Xcode defaults to building a debug build. To avoid this, enter "flutter build ios" in the flutter terminal. Then build in Xcode

doks
  • 21
  • 1
  • 4
  • Thank you, this work properly. if not for someone please try this: 1- flutter build ios, 2- cd ios, 3- pod install, 4- open *.xcworkspace – azim vaziri Jan 12 '20 at 14:05
0

Finally i can solve this issue and the solution is so weird. For solving this issue:

1- Change the bundle id

2- Create provisioning profile for Ad-hoc and App store

Then you can make an add hoc export and create a Diawi link.

This worked for me and i hope can help the others.

azim vaziri
  • 143
  • 1
  • 12
  • This is maybe for your xcode version. Download the latest version of xcode through AppStore and then try the above stages. – azim vaziri Nov 26 '19 at 08:45