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

ChartsRealm failed building on Xcode 9.2, swift 4.0.3 #13

Closed
liuxuan30 opened this issue Jan 2, 2018 · 1 comment
Closed

ChartsRealm failed building on Xcode 9.2, swift 4.0.3 #13

liuxuan30 opened this issue Jan 2, 2018 · 1 comment

Comments

@liuxuan30
Copy link
Collaborator

liuxuan30 commented Jan 2, 2018

Current latest realm-cocoa an Charts framework. Realm does not release 4.0.3 compatible frameworks, have to use master to build.

XuanLiuLaptop:ChartsRealm xuanliu$ cat Cartfile.resolved
github "danielgindi/Charts" "9706fa140bbce03e0e4fb7f798a3b2a13e8f0eb4"
github "realm/realm-cocoa" "95d69bebbeebf30a5bf00f8923638ed16e3899ce"

/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmBarDataSet.swift:49:43: error: cannot assign value of type 'RLMResults<AnyObject>' to type 'RLMResults<RLMObject>?'
            converted = ObjectiveCSupport.convert(object: results!)
                        ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
                                                                    as! RLMResults<RLMObject>
/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmBarDataSet.swift:66:43: error: cannot assign value of type 'RLMResults<AnyObject>' to type 'RLMResults<RLMObject>?'
            converted = ObjectiveCSupport.convert(object: results!)
                        ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
                                                                    as! RLMResults<RLMObject>
/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmBarDataSet.swift:83:43: error: cannot assign value of type 'RLMResults<AnyObject>' to type 'RLMResults<RLMObject>?'
            converted = ObjectiveCSupport.convert(object: results!)
                        ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
                                                                    as! RLMResults<RLMObject>
/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmBarDataSet.swift:100:43: error: cannot assign value of type 'RLMResults<AnyObject>' to type 'RLMResults<RLMObject>?'
            converted = ObjectiveCSupport.convert(object: results!)
                        ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
                                                                    as! RLMResults<RLMObject>
/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmBarDataSet.swift:200:18: error: generic parameter 'RLMObjectType' could not be inferred in cast to 'RLMArray<_>'
        if value is RLMArray
                 ^  ~~~~~~~~
Realm.RLMArray:33:12: note: 'RLMObjectType' declared as parameter to type 'RLMArray'
open class RLMArray<RLMObjectType> : NSObject, RLMCollection, NSFastEnumeration where RLMObjectType : AnyObject {
           ^
/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmBarDataSet.swift:200:21: note: explicitly specify the generic arguments to fix this issue
        if value is RLMArray
                    ^
                            <AnyObject>
/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmBarDataSet.swift:203:60: error: argument type 'RLMArray<_>' does not conform to expected type 'NSFastEnumeration'
            var iterator = NSFastEnumerationIterator(value as! RLMArray)
                                                     ~~~~~~^~~~~~~~~~~~
                                                                        as NSFastEnumeration
/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmPieDataSet.swift:19:12: error: type 'RealmPieDataSet' does not conform to protocol 'IPieChartDataSet'
open class RealmPieDataSet: RealmBaseDataSet, IPieChartDataSet
           ^
/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmPieDataSet.swift:19:12: note: do you want to add protocol stubs?
open class RealmPieDataSet: RealmBaseDataSet, IPieChartDataSet
           ^
/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmPieDataSet.swift:45:43: error: cannot assign value of type 'RLMResults<AnyObject>' to type 'RLMResults<RLMObject>?'
            converted = ObjectiveCSupport.convert(object: results!)
                        ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
                                                                    as! RLMResults<RLMObject>
/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmCandleDataSet.swift:47:43: error: cannot assign value of type 'RLMResults<AnyObject>' to type 'RLMResults<RLMObject>?'
            converted = ObjectiveCSupport.convert(object: results!)
                        ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
                                                                    as! RLMResults<RLMObject>
/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmCandleDataSet.swift:64:43: error: cannot assign value of type 'RLMResults<AnyObject>' to type 'RLMResults<RLMObject>?'
            converted = ObjectiveCSupport.convert(object: results!)
                        ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
                                                                    as! RLMResults<RLMObject>
/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmBubbleDataSet.swift:43:43: error: cannot assign value of type 'RLMResults<AnyObject>' to type 'RLMResults<RLMObject>?'
            converted = ObjectiveCSupport.convert(object: results!)
                        ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
                                                                    as! RLMResults<RLMObject>
/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmBubbleDataSet.swift:60:43: error: cannot assign value of type 'RLMResults<AnyObject>' to type 'RLMResults<RLMObject>?'
            converted = ObjectiveCSupport.convert(object: results!)
                        ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
                                                                    as! RLMResults<RLMObject>
/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmRadarDataSet.swift:42:43: error: cannot assign value of type 'RLMResults<AnyObject>' to type 'RLMResults<RLMObject>?'
            converted = ObjectiveCSupport.convert(object: results!)
                        ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
                                                                    as! RLMResults<RLMObject>
/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmRadarDataSet.swift:59:43: error: cannot assign value of type 'RLMResults<AnyObject>' to type 'RLMResults<RLMObject>?'
            converted = ObjectiveCSupport.convert(object: results!)
                        ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
                                                                    as! RLMResults<RLMObject>
/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmBaseDataSet.swift:76:43: error: cannot assign value of type 'RLMResults<AnyObject>' to type 'RLMResults<RLMObject>?'
            converted = ObjectiveCSupport.convert(object: results!)
                        ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
                                                                    as! RLMResults<RLMObject>
/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmBaseDataSet.swift:93:43: error: cannot assign value of type 'RLMResults<AnyObject>' to type 'RLMResults<RLMObject>?'
            converted = ObjectiveCSupport.convert(object: results!)
                        ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
                                                                    as! RLMResults<RLMObject>
/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmBaseDataSet.swift:110:43: error: cannot assign value of type 'RLMResults<AnyObject>' to type 'RLMResults<RLMObject>?'
            converted = ObjectiveCSupport.convert(object: results!)
                        ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
                                                                    as! RLMResults<RLMObject>
/Users/xuanliu/Development/bitbucket/Carthage/Checkouts/ChartsRealm/ChartsRealm/Classes/Data/RealmBaseDataSet.swift:127:43: error: cannot assign value of type 'RLMResults<AnyObject>' to type 'RLMResults<RLMObject>?'
            converted = ObjectiveCSupport.convert(object: results!)
                        ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
                                                                    as! RLMResults<RLMObject>

** ARCHIVE FAILED **
@liuxuan30 liuxuan30 changed the title ChartsRealm failed building ChartsRealm failed building on Xcode 9.2, swift 4.0.3 Jan 2, 2018
@liuxuan30
Copy link
Collaborator Author

fix in #14

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

No branches or pull requests

1 participant