aksonov / react-native-xmpp

XMPP library for React Native (iOS and Android native support)
BSD 2-Clause "Simplified" License
308 stars 98 forks source link

Dependency Analysis Error in XCode 9.2 #90

Open szmengran opened 6 years ago

szmengran commented 6 years ago

On IOS when i build my app ; I'm facing a dependency analysis error resulting in a build failure.

Could not determine generated file paths for Core Data code generation: Error Domain=com.apple.dt.ModelingTools Code=1 "Error, failed to read Core Data data model from /Users/agruet/mobile-dev/react-projects/goer/node_modules/react-native-xmpp/XMPPFramework/Extensions/XEP-0115/CoreDataStorage/XMPPCapabilities.xcdatamodel: unknown model format" UserInfo={NSFilePath=/Users/agruet/mobile-dev/react-projects/goer/node_modules/react-native-xmpp/XMPPFramework/Extensions/XEP-0115/CoreDataStorage/XMPPCapabilities.xcdatamodel, NSLocalizedDescription=Error, failed to read Core Data data model from /Users/agruet/mobile-dev/react-projects/goer/node_modules/react-native-xmpp/XMPPFramework/Extensions/XEP-0115/CoreDataStorage/XMPPCapabilities.xcdatamodel: unknown model format} Could not determine generated file paths for Core Data code generation: Error Domain=com.apple.dt.ModelingTools Code=1 "Error, failed to read Core Data data model from /Users/agruet/mobile-dev/react-projects/goer/node_modules/react-native-xmpp/XMPPFramework/Extensions/Roster/CoreDataStorage/XMPPRoster.xcdatamodel: unknown model format" UserInfo={NSFilePath=/Users/agruet/mobile-dev/react-projects/goer/node_modules/react-native-xmpp/XMPPFramework/Extensions/Roster/CoreDataStorage/XMPPRoster.xcdatamodel, NSLocalizedDescription=Error, failed to read Core Data data model from /Users/agruet/mobile-dev/react-projects/goer/node_modules/react-native-xmpp/XMPPFramework/Extensions/Roster/CoreDataStorage/XMPPRoster.xcdatamodel: unknown model format} Could not determine generated file paths for Core Data code generation: Error Domain=NSCocoaErrorDomain Code=260 "No current version for model at path /Users/agruet/mobile-dev/react-projects/goer/node_modules/react-native-xmpp/XMPPFramework/Extensions/XEP-0054/CoreDataStorage/XMPPvCard.xcdatamodeld:" UserInfo={NSFilePath=/Users/agruet/mobile-dev/react-projects/goer/node_modules/react-native-xmpp/XMPPFramework/Extensions/XEP-0054/CoreDataStorage/XMPPvCard.xcdatamodeld, NSLocalizedDescription=No current version for model at path /Users/agruet/mobile-dev/react-projects/goer/node_modules/react-native-xmpp/XMPPFramework/Extensions/XEP-0054/CoreDataStorage/XMPPvCard.xcdatamodeld:} Could not determine generated file paths for Core Data code generation: Error Domain=NSCocoaErrorDomain Code=260 "No current version for model at path /Users/agruet/mobile-dev/react-projects/goer/node_modules/react-native-xmpp/XMPPFramework/Extensions/XEP-0045/HybridStorage/XMPPRoomHybrid.xcdatamodeld:" UserInfo={NSFilePath=/Users/agruet/mobile-dev/react-projects/goer/node_modules/react-native-xmpp/XMPPFramework/Extensions/XEP-0045/HybridStorage/XMPPRoomHybrid.xcdatamodeld, NSLocalizedDescription=No current version for model at path /Users/agruet/mobile-dev/react-projects/goer/node_modules/react-native-xmpp/XMPPFramework/Extensions/XEP-0045/HybridStorage/XMPPRoomHybrid.xcdatamodeld:} Could not determine generated file paths for Core Data code generation: Error Domain=NSCocoaErrorDomain Code=260 "No current version for model at path /Users/agruet/mobile-dev/react-projects/goer/node_modules/react-native-xmpp/XMPPFramework/Extensions/XEP-0136/CoreDataStorage/XMPPMessageArchiving.xcdatamodeld:" UserInfo={NSFilePath=/Users/agruet/mobile-dev/react-projects/goer/node_modules/react-native-xmpp/XMPPFramework/Extensions/XEP-0136/CoreDataStorage/XMPPMessageArchiving.xcdatamodeld, NSLocalizedDescription=No current version for model at path /Users/agruet/mobile-dev/react-projects/goer/node_modules/react-native-xmpp/XMPPFramework/Extensions/XEP-0136/CoreDataStorage/XMPPMessageArchiving.xcdatamodeld:} Could not determine generated file paths for Core Data code generation: Error Domain=NSCocoaErrorDomain Code=260 "No current version for model at path /Users/agruet/mobile-dev/react-projects/goer/node_modules/react-native-xmpp/XMPPFramework/Extensions/XEP-0045/CoreDataStorage/XMPPRoom.xcdatamodeld:" UserInfo={NSFilePath=/Users/agruet/mobile-dev/react-projects/goer/node_modules/react-native-xmpp/XMPPFramework/Extensions/XEP-0045/CoreDataStorage/XMPPRoom.xcdatamodeld, NSLocalizedDescription=No current version for model at path /Users/agruet/mobile-dev/react-projects/goer/node_modules/react-native-xmpp/XMPPFramework/Extensions/XEP-0045/CoreDataStorage/XMPPRoom.xcdatamodeld:}

react-native : 0.54 Xcode: 9.2

Could you give me some advices?

mayacger commented 6 years ago

I also encountered the same problem, the reason seems to be XMPPFramework removed in his latest version, because I use the previous version, I found XMPPFramework from previous node_modules/react-native-xmpp/ and copy it. However, in the latest xcode 9.3, kissXml will also report an error, I can only copy a copy from the pod file.

The author should recommend using CocoaPods.

lengzuo commented 6 years ago

How to solve this problem ?

mrthetkhine commented 6 years ago

Does anybody have solution to the problem, currently I cannot build it.

abtuhin commented 6 years ago

Found similar issue.

kasran15 commented 6 years ago

this library has gotten extremely frustrating ever since xcode 9.3 has come up. I have spent countless hours on this and can find no solution. each time i end up downgrading to xcode 9.2.

shaydvir commented 6 years ago

@aksonov I'm encountering the same problem. Has anyone come up with a solution?