We got our extension working in the simulator from your example only to find it crashes on any actual device. We then cloned your project and found it also crashes on actual device.
The test we use was selecting it from Safari on an iPhone 6 and SE.
Looks like the jsCodeLocation is coming back nil for the extension on the device
I had set it like this:
jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
for it to work. So I imagine a "release" version would work as well.
We got our extension working in the simulator from your example only to find it crashes on any actual device. We then cloned your project and found it also crashes on actual device. The test we use was selecting it from Safari on an iPhone 6 and SE.
Looks like the jsCodeLocation is coming back nil for the extension on the device I had set it like this:
jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; for it to work. So I imagine a "release" version would work as well.