Software Archive
Read-only legacy content
17061 Discussions

iOS Ad Hoc builds crash on iOS after installation

Kancho_K_
Beginner
1,226 Views

Hello,

I am experiencing a problem with the iOS builds the last days. Intel XDK generates the builds successfully and I install them without any problems on my iPod (iOS version 6.1.6) through iTunes. The problem comes when I open the installed applications - they are started successfully as expected and 1 second after that just quit. I pulled the crashed reports from the device and I noted that they have the same type of exception (EXC_CRASH (SIGABRT)) thrown by the iOS, for instance:

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread:  0

Last Exception Backtrace:
(0x3349529e 0x3b11597a 0x33498e02 0x3349752c 0x333eef64 0x1f6bf4 0x1f69a4 0x1f6a94 0x1f6a08 0x33dac0f0 0x3346a67e 0x33469ee4 0x33468cb2 0x333dbeb8 0x333dbd44 0x36f8e2e6 0x352f12fc 0xc6e8a 0xc6e34)

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib            0x3b613350 0x3b602000 + 70480
1   libsystem_c.dylib                 0x3b58a11e 0x3b55b000 + 192798
2   libsystem_c.dylib                 0x3b5c696e 0x3b55b000 + 440686
3   libc++abi.dylib                   0x3ab64d4a 0x3ab61000 + 15690
4   libc++abi.dylib                   0x3ab61ff4 0x3ab61000 + 4084
5   libobjc.A.dylib                   0x3b115a74 0x3b10d000 + 35444
6   libc++abi.dylib                   0x3ab62078 0x3ab61000 + 4216
7   libc++abi.dylib                   0x3ab62110 0x3ab61000 + 4368
8   libc++abi.dylib                   0x3ab63594 0x3ab61000 + 9620
9   libobjc.A.dylib                   0x3b1159cc 0x3b10d000 + 35276
10  CoreFoundation                    0x333dbf1c 0x333d3000 + 36636
11  CoreFoundation                    0x333dbd44 0x333d3000 + 36164
12  GraphicsServices                  0x36f8e2e6 0x36f89000 + 21222
13  UIKit                             0x352f12fc 0x3529a000 + 357116
14  tMobileApp2                       0x000c6e8a 0xbf000 + 32394
15  tMobileApp2                       0x000c6e34 0xbf000 + 32308

I just want to mention that I did not have such a problem before. I have an old build (from 15th of February or something) of the same application 'tMobileApp2' and it is still running perfectly when I install it on the device.

Does anybody have an idea of what might be going wrong and why the applications quit suddenly once opened?

Thanks a lot in advance!

0 Kudos
9 Replies
John_H_Intel2
Employee
1,226 Views

Is this will all of your iOS Cordova built apps, or just one?
Have you tried restarting your device?
This/these app(s) use to work on this device?
Can you try building for iOS 6 and reinstalling?

Can you add my UDID to your account, update the provisioning profile, download it, provide it to the XDK, upload and rebuild? At the end of the build, use the form provided to send me the build so I can try to replicate the issue on my device. 

ea9dd89e3c1eda0a5e5021d187a253c728f973f4

0 Kudos
Kancho_K_
Beginner
1,226 Views

 Hi John,

 Thanks a lot for your reply! I am using the iOS Ad Hoc build under the Legacy Hybrid Mobile Platforms section. Yes, I restarted the device after I encountered the problem, but this did not fix the problem. I uninstalled it and put the old build to try and the old build is still working fine.

I added your UDID to my account and updated the provisioning profile. I built again, installed it successfully but still the same problems is happening. By the way I see that the only option for the Ad Hoc Builds is iOS 4.3 as target OS. I tried to build by using the Cordova build option for iOS 6, but my build fail. I am sending you the log file as well.

I am sending you the new build that is not working OK on my iOS device, plus the old build that is still working fine. I also tried with a very simple project - just a button on a form, no any plugins, but I am still facing the same problem.

The version of Intel XDK I am using is: 0.0.1621. Should I update it to the latest version? In fact, I was using the latest one, but it was crashing unexpectedly and that's why decided to downgrade it to the current one.

Thank you very much for your help with this!

 

0 Kudos
New_Japan_A_
Beginner
1,226 Views

it's the cordova.js include, i'm experiencing the same issue and pinpointed the culprit. now it's the dev's turn to figure out what's going on with cordova.js...

0 Kudos
fitz_b_
Beginner
1,226 Views

I what just like to echo that I am having all of the these problems. The only other think is that the app runs fine, when ran from within The intel App preview application. I have also tested this with a pre-built app template within the Intel builder and it also crashes after it is opened on my devices. 

Any news on this?

Regards Fitz

 

0 Kudos
Kancho_K_
Beginner
1,226 Views

Hi Fitz,

Thanks for your comments! I tried the Cordova builds and they work fine, but just was not online to post here during the weekend. If you are still using the Hybrid builds, I can recommend you to try the Cordova builds. They must be working fine now. Apparently Intel has been updating their build system. I tried the Cordova build for Android and iOS and they are working quite well, plus the iOS app is not crashing anymore the way I have described before. 

By the way, many thanks to John from Intel (the first reply to my post) as he pointed me to the right direction to stop using the Hybrid builds and move directly to the Cordova builds for iOS.

Try with the Cordova build and post here if u face any issues.

 

Best Wishes,

Kancho Kanchev

0 Kudos
John_H_Intel2
Employee
1,226 Views

I could not install the old build, since it does not contain my UDID in the provisioning profile.

The new build installed, but crashed when launched. I then took your code and built one of my apps using it. It installed and ran on my iPhone 6 without crashing.  I then updated my build settings to match yours and it still worked. The one thing that I did find odd is that you have both of these plugins included in your build:

<intelxdk:plugin intelxdk:name="In App Browser" intelxdk:value="org.apache.cordova.inappbrowser" intelxdk:version="0.4.0"/>

<intelxdk:plugin intelxdk:name="inappbrowser_plugin" intelxdk:value="org.apache.cordova.inappbrowser"/>
 
The first one comes from the build settings page. The second one, I am not sure. Did you add it to your additions file at one point and forget about it?
You could also try removing any unused plugins and see if that helps.
0 Kudos
John_H_Intel2
Employee
1,226 Views

Another thing I noticed is that you are building for production. To install/run on device, you need to build ad hoc. Production builds are only for submitting to the app store. 

0 Kudos
Viet_Cuong_D_
Beginner
1,226 Views

I also encountered a similar problem with the first applications helloworld.

please help me troubleshoot problems 

0 Kudos
PaulF_IntelCorp
Employee
1,226 Views

@viet -- the problems described above appear to be due to a move from CLI 3.5 to CLI 4.1.2. That change affects the underlying iOS Cordova framework, which changes the version of cordova.js that is included with the app -- which appears to be the culprit for these bugs.

Can you provide more details regarding your situation? For example:

  • what device are you testing on?
  • what version of iOS is on that device?
  • attach a ZIP of your entire project directory that is causing the problem
  • is this an app that previously worked and now does not?
0 Kudos
Reply