first put a breakpoint (remember global breakpoints, so you can detect when something breaks) and then I know that my own class is writing
TTCourse *course=[[TTCourse alloc]init]; This is a problem, after is – [TTCourse setCourseID:] : unrecognized selector that sent to instance 0 x7fa392ecb080 this mistake, and then I looked at it inherited type is span> NSManagedObject, so initialization must use this type of initialization, namely insertNewObjectIntoContext this method.
TTCourse *course = [TTCourse insertNewObjectIntoContext:[TTImporter sharedInstance].context]; // span>[TTImportersharedInstance].0 context. You can just write your own context.
Also, here’s a more recognized selector sent to instance
>
> span>
Read More:
- The solution of GDB code designed problem in Mac OS X
- Array initializer is not allowed here
- 2021-11-08 error: could not convert ‘{0}‘ from ‘<brace-enclosed initializer list>‘ to
- Spring initializer error: initialization failed for ‘ https://start.spring.io ‘
- A call to an OS function failed
- error: initializer element is not constant [How to Solve]
- the module was loaded but the call to DllRegisterServer failed with error code 0x80020009
- Resolved failed call to cuinit: CUDA_ ERROR_ NO_ DEVICE
- linux/tensorflow: failed call to cuDevicePrimaryCtxRetain: CUDA_ERROR_INVALID_DEVICE
- Hadoop hdfs dfs -ls/ error: Call From master/192.168.88.108 to slave1:9820 failed on connection except
- bug-JAVA call SAP function Connect to SAP gateway failed
- ERROR:expected initializer before “int”
- There is no spring initializer solution when idea starts
- tf.contrib.layers .xavier_ Initializer function usage
- variable ‘std:ofstream’ has initializer but incomplete type
- Tensorflow error in Windows: failed call to cuinit: CUDA_ ERROR_ UNKNOWN
- mkdir: Call From hadoop102/192.168.6.102 to hadoop102:8020 failed on connection exception: java.net.
- Registering in Windows10 regsvr32 xxx.ocx reported an error but the call to DIIRegisterServer failed with error code 0x80040200…
- Interrupted function call accept failed when idea starts Tomcat
- 3. Idea creates a springboot project, and spring initializer reports an error Error:connect timed out