Data model version error - ios

I can't compile my project on Xcode now for some reason this 2errors data model version keeps poping up. I followed few fixes.
Delete the derivedData from Xcode directories
Disable MOMC from build setting
Reset ios emulator
Nothing is working I wasted 2hours trying to just build this projects which was working yesterday. Please help what should I do to build smoothly?

Related

Xcode stuck on start loading project

My xcode stopped working properlly and I don't know why.
By launching my flutter project in Xcode today da loading runner is infinity and app does not respond anymore.
This happens with any project even if i start a new project the problem is the same.
Can you help please ?
(I reinstalled Xcode 14.2 the problem is the same)
Issue image
I already tried to delete cache files, reboot the mac, reinstall xcode.
Nothing worked
I had the same problem, only opened the project after disabling iCloud

No Such Module Flutter

I've run the flutter app from XCode Using XCode version 13.2.1 (latest in January 2022)
XCode showing error like mentioned in image :
It is claimed by the Flutter team to be a bug with the visual component of XCode... as evidenced by the fact that the project will still build and run from XCode.
There are many reported ways to get rid of it temporarily, such as doing Product\build , Product\Clean Build Folder, or running the project on IOS from within Android Studio...
But these are only temporary and the problem will reappear.
https://github.com/flutter/flutter/issues/92337
How to get rid of this critical issue in XCode, thanks in advance.

Xcode 9 Beta Build System fails with no errors

So, this is strange. Trying to build my fairly large project with the new Xcode Beta Build System and it fails with 0 errors. The old build system works fine.
The status bar at the top of the IDE displays the following:
Planning build...
Scanning build tasks...
It has got further than this before, but now seems to be failing really quickly. No idea how I can debug this. Any ideas?
I would recommend you to try these steps:
Quit Xcode
Delete folder ~/Library/Developer/Xcode/DerivedData
Reopen Xcode and try again
Hope it helps
EDIT: Quiting and reopening of Xcode after deletion of derived data is essential, because Xcode can hold derived data in it's cache. So deletion of derived data when Xcode is running does not help very often.
Remove 'Derived Data' before running the build.
To remove, go to
File > Work Space Settings > Go to the directory path > Delete.
Do not forget to clean the project
Cmd + Shift+ k

Unable to archive iOS app after updating to Xcode 7.3

I'm having problems archiving an iOS Swift application since the last Xcode update (Xcode 7.3), the application builds and runs correctly in debug mode but as soon as I try to archive it I get the following error:
No such module "RealmSwift"
Although it references RealmSwift it fails randomly importing this or any other pod.
The most strange point is that downgrading to Xcode 7.2.1 and Command Line tools 7.2 doesn't fix the problem.
I've clean Cocoapods cache, completely removed ~/Library/Developer folder, removed my Pods folder within the project folder. Even trying to archive with a different machine doesn't work. I rolled back to a version of the app released on Crashlytics and therefore successfully archived in the past with the same result.
Any thoughts about what could be wrong?

Failed to launch IBCocoaTouchImageCatalogTool via CoreSimulator spawn

I have an Xcode project which was downloaded from the internet so I don't know which Xcode version was used to write it but the language is Swift 2. I opened it in Xcode 7.1 beta 1 and I get the following compile time error.
Failed to launch IBCocoaTouchImageCatalogTool via CoreSimulator spawn
I deleted the DerviedData foler, cleaned and build the project several times. Tried converting the project to latest Swift syntax but it says there's nothing to convert.
I'm all outta ideas. Suggestions?
The same happened to me and it was solved by cleaning the project. However, if you cleaned it —as you say you did—, I would try closing and reopening Xcode. Even though it seems stupid, it works more often than not.
So After Trying a bit i removed the XCassets file form the Copy Bundle Resources, build once without it and then added it again. Solved it for me.
I had the same issue. My solution was to do the following
Clean the Project
Quit Xcode
Reopen Xcode
Build
That got it working for some reason...
The above answers are correct.
I have a bit similar approach.
After, I use these steps:
Clean the project.
Remove your Assets from your project(Remove References). Run the project without assets. Now the project will show some compile errors, these are not very tricky.
Run the project, this time project run without your assets and may be chances of crash. This ensures that project will run.
Now clean the project and add the assets, now run the project. The project runs successfully.
For me it works. I hope it will be helpful to you.
The only correct solution for me that takes only a moment to perform is to delete ~/Library/Developer/CoreSimulator and all of its contents. Immediately after this the build completes successfully.
I believe the solutions that state to reinstall Xcode, ultimately refresh the CoreSimulator folder, that's why they are successful in resolving the issue.
I started experiencing the error after having upgraded to MacOS Big Sur, while using Xcode 11.6 and Xcode 11.7.
Possible solution for those struggling with the above answers.
If you've just restored your machine from a time machine backup (migrating from old to new machine), you may want to re-install Xcode.
It doesn't appear to bring the caches or other important settings across properly from the time machine restore.
I've just taken that; what appears to be a drastic step, but it's worked!
Instructions on how to do so: Completely reinstall Xcode 9
-W
I was also facing the same issue tried cleaning and restarting XCODE didn't worked for me,
so I removed xcassets and added the image sets again one by one, and that worked for me.
Had to add a step Airman00's answer.
List item
Clean the Project
Quit Xcode
Delete derived data
Reopen Xcode Build
That got it working for some reason...
Update to XCode 7.1.1 from 7.1 solved my problem.
With XCode 7.1 I used Airman00's solution but suddenly it stop working.
Hope it helps!
If you have this type of error in your project then follow these steps:
Clean the project
And go to storyboard and select any viewController
And Run the project again
This will successfully resolve the error.
Maybe you have just cleaned Logs directory...Then you can try this:
sudo chmod 777 /Users/[YourUserName]/Library/Logs
I had to restart my machine to get this to work. Just in case, here are the exact steps I did:
Clean project
Quick Xcode
Delete Derived Data
Restart machine
Reopen
I had the same problem recently with Xcode 11.4 on Catalina 10.15.4.
Rebooting, cleaning project folders, or deleting the derived data directory did not help. What solved the problem for me was to remove and reinstall Xcode (I use the AppStore version).
It is possible, that I caused the problem myself by reinstalling macOS 10.15.4 via a Combo-Update.
I tried everything . But nothing worked . So i reinstalled Xcode . I took some time . But worked
Xcode 14 beta solution
If you are finding your production Xcode 13 builds aren't working and you have Xcode beta 14 installed you can try this:
Launch Xcode 14 beta 3
Open the Platforms preference pane
Xcode 13 should now work as expected
Source: https://twitter.com/AnaCalinov/status/1545118596820439040

Resources