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

Build failure on iOS - CHIBasePageControl #141

Closed
keerl opened this issue Sep 19, 2019 · 6 comments
Closed

Build failure on iOS - CHIBasePageControl #141

keerl opened this issue Sep 19, 2019 · 6 comments

Comments

@keerl
Copy link

keerl commented Sep 19, 2019

Upgraded to the newest version and now I can't build on iOS. I get the error below.

/Users/.../platforms/ios/Pods/CHIPageControl/CHIPageControl/Core/CHIBasePageControl.swift:119:55: error: 'common' has been renamed to 'RunLoopMode.commonModes'
        self.displayLink?.add(to: .current, forMode: .common)
                                                      ^~~~~~
                                                      RunLoopMode.commonModes
Foundation.RunLoop.Mode:9:23: note: 'common' was introduced in Swift 4.2
    public static let common: RunLoopMode
                      ^
/Users/.../platforms/ios/Pods/CHIPageControl/CHIPageControl/Core/CHIBasePageControl.swift:202:60: error: 'common' has been renamed to 'RunLoopMode.commonModes'
        self.displayLink?.remove(from: .current, forMode: .common)
                                                           ^~~~~~
                                                           RunLoopMode.commonModes
Foundation.RunLoop.Mode:9:23: note: 'common' was introduced in Swift 4.2
    public static let common: RunLoopMode
                      ^
/Users/.../platforms/ios/Pods/CHIPageControl/CHIPageControl/CHIPageControlChimayo.swift:97:29: error: type 'CAShapeLayerFillRule' (aka 'NSString') has no member 'evenOdd'
            mask.fillRule = CAShapeLayerFillRule.evenOdd
                            ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~
/Users/.../platforms/ios/Pods/CHIPageControl/CHIPageControl/Core/CHIBasePageControl.swift:119:55: error: 'common' has been renamed to 'RunLoopMode.commonModes'
        self.displayLink?.add(to: .current, forMode: .common)
                                                      ^~~~~~
                                                      RunLoopMode.commonModes
Foundation.RunLoop.Mode:9:23: note: 'common' was introduced in Swift 4.2
    public static let common: RunLoopMode
                      ^
/Users/.../platforms/ios/Pods/CHIPageControl/CHIPageControl/Core/CHIBasePageControl.swift:202:60: error: 'common' has been renamed to 'RunLoopMode.commonModes'
        self.displayLink?.remove(from: .current, forMode: .common)
                                                           ^~~~~~
                                                           RunLoopMode.commonModes
Foundation.RunLoop.Mode:9:23: note: 'common' was introduced in Swift 4.2
    public static let common: RunLoopMode
                      ^
/Users/.../platforms/ios/Pods/CHIPageControl/CHIPageControl/CHIPageControlChimayo.swift:97:29: error: type 'CAShapeLayerFillRule' (aka 'NSString') has no member 'evenOdd'
            mask.fillRule = CAShapeLayerFillRule.evenOdd
                            ^~~~~~~~~~~~~~~~~~~~ ~~~~~~~
** BUILD FAILED **
@triniwiz
Copy link
Owner

what version of swift are u using ?

@keerl
Copy link
Author

keerl commented Sep 19, 2019

How do I check?

@foxted
Copy link

foxted commented Sep 22, 2019

I am experiencing the same issue here, using Swift 4.2 & NativeScript 6.1.2 with tns-ios 6.1.1

@trevormackay
Copy link

trevormackay commented Oct 31, 2019

Has this been resolved?
I am trying to execute with xcode and it errors on "framework not found "CHIPageControl"
any help would be appreciated.
NativeScript 6.1.2 with tns-ios 6.1.0
nativescript-pager 11.0.11

@triniwiz
Copy link
Owner

Can ya'll try building the app with swift v5

@keerl
Copy link
Author

keerl commented Nov 9, 2019

I was able to build successfully with Swift 5 by making a Podfile in App_Resources/iOS/Podfile and adding this, not sure if it's the best way but it seems to work.

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['SWIFT_VERSION'] = '5.0'
        end
    end
end

@keerl keerl closed this as completed Nov 9, 2019
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

4 participants