ofxARKit examples not ruuning

Dear community,

I’m trying to get run the examples of ofxARKit, but all the examples are giving me the same error like this.

2020-10-15 20:23:48.373866+0200 ofxARKit_test[36542:6064264] *** Assertion failure in void _UIApplicationMainPreparations(int, char **, NSString *__strong, NSString *__strong)(), UIApplication.m:4682
2020-10-15 20:23:48.374182+0200 ofxARKit_test[36542:6064264] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unable to instantiate the UIApplication delegate instance. No class named MyAppDelegate is loaded.'
*** First throw call stack:
(0x1a5685114 0x1b8eabcb4 0x1a5594308 0x1a68c6ca8 0x1a7ec9d68 0x1a7ec95bc 0x102b8aa6c 0x102950400 0x1a52dd598)
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unable to instantiate the UIApplication delegate instance. No class named MyAppDelegate is loaded.'
terminating with uncaught exception of type NSException
(lldb) 

I’m using the v.0.11.0_ios on catalina, and ios14 on iphoneX

Any tips to figure out the problem?
Thanks!

Hi @haram,

did you sort your problem?

I believe it was coming from the fact that you didn’t tick the right boxes for the shaders.metal:

Shaders.metal needs to be of type Metal Shader Source, and the target Membership has to be the project target.

You can find it some other places on the forum too.

Best,

P

1 Like

Thanks for the reply, @pierre_tardif00

Yes I think this works now.
I, in fact, did what you pointed out, as I came to this article few days ago.

But it just gave me the same error, and even another as well, which was

‘metal_stdlib’ file not found

This error came out from the very beginning of the file Shaders.metal.
And I thought that I apparently did something really bad by accident, but still don’t know what that was.
So I just re-downloaded the whole openframeworks into another directory, and now it works all good.