Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not determine generated file paths for Core Data code generation: #112

Open
3 tasks done
ridcridc1 opened this issue Jun 28, 2024 · 7 comments
Open
3 tasks done
Labels
Question Further information is requested

Comments

@ridcridc1
Copy link

Question

Could not determine generated file paths for Core Data code generation: The command (cd /Users/egovridc/Desktop/MOBILE-PROJECTS/MOBILE-2024/2fas-ios-main/TwoFAS && /Applications/Xcode.app/Contents/Developer/usr/bin/momc --dry-run --action generate --swift-version 5.0 --sdkroot /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator10.5.sdk --watchsimulator-deployment-target 10.5 --module SyncWatch /Users/adocyn/Documents/Projects/2FAS/TwoFAS/Sync/Watch/Sync.xcdatamodeld /Users/egovridc/Library/Developer/Xcode/DerivedData/TwoFAS-bzzclituzxybwebfinorndgeleog/Build/Intermediates.noindex/TwoFAS.build/Debug-watchsimulator/SyncWatch.build/DerivedSources/CoreDataGenerated/Sync) exited with status 1. The command's standard error was:

/Users/adocyn/Documents/Projects/2FAS/TwoFAS/Sync/Watch/Sync.xcdatamodeld:: error: Could not fetch generated file paths: No current version for model at path /Users/adocyn/Documents/Projects/2FAS/TwoFAS/Sync/Watch/Sync.xcdatamodeld: [0]

Acknowledgements

  • This issue is not a duplicate of an existing question.
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
@ridcridc1 ridcridc1 added the Question Further information is requested label Jun 28, 2024
@adocyn
Copy link
Collaborator

adocyn commented Jun 30, 2024

@ridcridc1 Hi, please try on newest develop

@tulsra
Copy link

tulsra commented Aug 10, 2024

I am facing the same issue. I have changed code generation to manual, and added files manually too But no luck.

@tulsra
Copy link

tulsra commented Aug 11, 2024

I understand the issue

cd /Users/runner/work/Weatherman/Weatherman && /Applications/Xcode_15.4.app/Contents/Developer/usr/bin/momc --dry-run --action generate --swift-version 5.0 --sdkroot /Applications/Xcode_15.4.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.5.sdk --iphonesimulator-deployment-target 17.5 --module Weatherman /Users/thulasi/Documents/Weatherman/Weatherman/WeatherCoreDataStore.xcdatamodeld /Users/runner/Library/Developer/Xcode/DerivedData/Weatherman-cazqvisbxxkiuzbizogxcjupbxlb/Build/Intermediates.noindex/Weatherman.build/Testing-iphonesimulator/Weatherman.build/DerivedSources/CoreDataGenerated/WeatherCoreDataStore

It should dynamically take the path., it should be like
/Users/runner/work/Weatherman/Weatherman/WeatherCoreDataStore.xcdatamodeld

Not sure how to set this..

@tulsra
Copy link

tulsra commented Aug 11, 2024

Found solution. Check this please.

#136

@adocyn
Copy link
Collaborator

adocyn commented Aug 19, 2024

This should be fixed in newest version. Please let me know if otherwise, as fix is easy.

@tulsra
Copy link

tulsra commented Aug 22, 2024

I haven't tried Xcode16 beta yet. In Xcode15.4, we need to change relative path manually.

@SokoloffA
Copy link

Thank you!
I had a similar problem on another project and you saved my day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants