Posts

Showing posts from July, 2018

objective c project swift version error came iOS

Solution: You had not mentioned the swift version in your build settings. 1)Select your project. 2)Goto build settings -> click + icon -> select user defined setting. 3)Add key value named  SWIFT_VERSION and value as 3.0 4)Finally build and run your project it will works

core data use of undeclared type error iOS

Problem: I had modified my entity properties and added new entity in my app with two extensions today extension and sharing extension.I had generated my NSManagedobject subclasses.But it shows error when i build the app like below. "core data use of undeclared type" with my entity Solution: First you have to clear the derived data from xcode. Goto xcode menu select preference - > select the menu "locations" -> click the small arrow near to the derived data path ->it will show you the derived data caches in the finder. Delete the app data in derived data then close the xcode and reopen our project it will works. If it shows the error again then follow the steps. Select the xcdatamodeld -> in right side first menu "show file inspector" Then check that under target membership your project and other extensions are checked.If not checked then do check them. Also select all of your NSManaged object subclasses and do the same.Then

In target change capabilities not affected xcode

Problem: I had created two targets from my app to run with different provisioning profiles and capabilities.When i change the groupid,icloud capabilities it was automatically changed in the another target. So i'm no able to run the app. Solution: You had created two targets with different provisioning profiles.First you goto build settings->code signing entitlements  check that new info.plist name is placed.If in both targets name as same then the above problem will be occur.

Coredata error while adding new properties

If you created the new model from coredata and modified the properties in the model. After that must have to delete the NSManaged subclasses for your entity and create new class and save it. After that if your Xcode shows that property not found for the class entity files then follow the below steps.  Quit the Xcode and relaunch.after that clear the derived data then open the xcode it will works good.