Cannot run app extension on device

My app extension runs fine in the simulator, but when I attempt to run it on the device through Safari, it never runs. If I launch the extension through XCode, I get the following popup error:


"Could not attach to pid : <number>"

"unable to attach"


I read that this could be a provisioning issue, so I deleted and recreated all my appids and provisioning profiles. Unfortunately this didn't work.


I have App Groups and Keychain Sharing enabled. The device is an iPhone 6s (iOS 10.2.1) and XCode is 8.2.1.

Any help would be greatly appreciated!

Answered by jp.rider in 216781022

I figured this out. One of the libraries I was linking was a 32 bit library. I compiled a 64 bit version of the library and the extension now runs.

Accepted Answer

I figured this out. One of the libraries I was linking was a 32 bit library. I compiled a 64 bit version of the library and the extension now runs.

Cannot run app extension on device
 
 
Q