twofas/2fas-ios

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

Opened this issue · 6 comments

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 Hi, please try on newest develop

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

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..

Found solution. Check this please.

#136

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

tulsra commented

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