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
Reachability is not Swift 2.0 compliant. #21
Comments
Hi, Check out the develop branch for a version that compiles under Swift 2. If you're using CocoaPods it's v2.0-beta1 Ash |
I updated my Podfile and re-installed. Got the following errors during build:
|
Can you post the errors? |
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler :0: error: no such file or directory: '/Users/Ric/Workarea/Bliss (DevelopRic)/Pods/ReachabilitySwift/Reachability.swift' Ditto /Users/Ric/Library/Developer/Xcode/DerivedData/Bliss2-cfsnsfhdoqhwejbbgqkdsosrhpuc/Build/Intermediates/SwiftMigration/Bliss2/Products/Debug-iphonesimulator/Pods/ReachabilitySwift.framework/Headers/ReachabilitySwift-Swift.h /Users/Ric/Library/Developer/Xcode/DerivedData/Bliss2-cfsnsfhdoqhwejbbgqkdsosrhpuc/Build/Intermediates/SwiftMigration/Bliss2/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ReachabilitySwift.build/Objects-normal/x86_64/ReachabilitySwift-Swift.h ditto: can't get real path for source '/Users/Ric/Library/Developer/Xcode/DerivedData/Bliss2-cfsnsfhdoqhwejbbgqkdsosrhpuc/Build/Intermediates/SwiftMigration/Bliss2/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ReachabilitySwift.build/Objects-normal/x86_64/ReachabilitySwift-Swift.h' Ditto /Users/Ric/Library/Developer/Xcode/DerivedData/Bliss2-cfsnsfhdoqhwejbbgqkdsosrhpuc/Build/Intermediates/SwiftMigration/Bliss2/Products/Debug-iphonesimulator/Pods/ReachabilitySwift.framework/Modules/ReachabilitySwift.swiftmodule/x86_64.swiftmodule /Users/Ric/Library/Developer/Xcode/DerivedData/Bliss2-cfsnsfhdoqhwejbbgqkdsosrhpuc/Build/Intermediates/SwiftMigration/Bliss2/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ReachabilitySwift.build/Objects-normal/x86_64/ReachabilitySwift.swiftmodule ditto: can't get real path for source '/Users/Ric/Library/Developer/Xcode/DerivedData/Bliss2-cfsnsfhdoqhwejbbgqkdsosrhpuc/Build/Intermediates/SwiftMigration/Bliss2/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ReachabilitySwift.build/Objects-normal/x86_64/ReachabilitySwift.swiftmodule' Ditto /Users/Ric/Library/Developer/Xcode/DerivedData/Bliss2-cfsnsfhdoqhwejbbgqkdsosrhpuc/Build/Intermediates/SwiftMigration/Bliss2/Products/Debug-iphonesimulator/Pods/ReachabilitySwift.framework/Modules/ReachabilitySwift.swiftmodule/x86_64.swiftdoc /Users/Ric/Library/Developer/Xcode/DerivedData/Bliss2-cfsnsfhdoqhwejbbgqkdsosrhpuc/Build/Intermediates/SwiftMigration/Bliss2/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ReachabilitySwift.build/Objects-normal/x86_64/ReachabilitySwift.swiftdoc ditto: can't get real path for source '/Users/Ric/Library/Developer/Xcode/DerivedData/Bliss2-cfsnsfhdoqhwejbbgqkdsosrhpuc/Build/Intermediates/SwiftMigration/Bliss2/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ReachabilitySwift.build/Objects-normal/x86_64/ReachabilitySwift.swiftdoc' Ld /Users/Ric/Library/Developer/Xcode/DerivedData/Bliss2-cfsnsfhdoqhwejbbgqkdsosrhpuc/Build/Intermediates/SwiftMigration/Bliss2/Products/Debug-iphonesimulator/Pods/ReachabilitySwift.framework/ReachabilitySwift normal x86_64 ld: file not found: /Users/Ric/Library/Developer/Xcode/DerivedData/Bliss2-cfsnsfhdoqhwejbbgqkdsosrhpuc/Build/Intermediates/SwiftMigration/Bliss2/Intermediates/Pods.build/Debug-iphonesimulator/Pods-ReachabilitySwift.build/Objects-normal/x86_64/Reachability.o GenerateDSYMFile /Users/Ric/Library/Developer/Xcode/DerivedData/Bliss2-cfsnsfhdoqhwejbbgqkdsosrhpuc/Build/Intermediates/SwiftMigration/Bliss2/Products/Debug-iphonesimulator/Pods/ReachabilitySwift.framework.dSYM /Users/Ric/Library/Developer/Xcode/DerivedData/Bliss2-cfsnsfhdoqhwejbbgqkdsosrhpuc/Build/Intermediates/SwiftMigration/Bliss2/Products/Debug-iphonesimulator/Pods/ReachabilitySwift.framework/ReachabilitySwift error: cannot parse the debug map for "/Users/Ric/Library/Developer/Xcode/DerivedData/Bliss2-cfsnsfhdoqhwejbbgqkdsosrhpuc/Build/Intermediates/SwiftMigration/Bliss2/Products/Debug-iphonesimulator/Pods/ReachabilitySwift.framework/ReachabilitySwift": No such file or directory |
Thanks. What have you tried yourself to resolve this issue? Have done a clean build? Have you tried adding Reachability.Swift without using CocoaPods? Any other info you can give me? |
I haven’t tried the raw route. I’ll retry later… as Swift 2.0 becomes more common.
|
I add the beta tag to the Podfile
but got the following error: |
@petershaw: It should be
|
Any plans to turn this into a branch, or will it just become a fix on master at some point? We're using our own hacked version that we made 2.0 compatibile. It would be nice to include it as a proper pod. |
Absolutely. |
Once Swift 2.0 is live, I'll merge the develop branch back into master Ash |
Any updates on this? I've tried it on Xcode 7 (official release) but I'm getting an error saying: Binary Operator '!=' cannot be applied to operands of type 'Bool' and 'Int' |
changing the '0' to 'false' in the errors seems to work. |
Make sure you're using the developer branch and the latest Xcode 7 release Sent from my iPhone
|
sorry, I thought I was. This fixed it. |
Any idea when this will be merge into master? |
Also interested when code will be updated into 2.0 |
This is giving an error : Binary Operator '!=' cannot be applied to operands of type 'Bool' and 'Int' if SCNetworkReachabilitySetCallback(reachabilityRef!, callback, &context) != 0 { and when i run the app it crashes here : fatal error: unexpectedly found nil while unwrapping an Optional value by changing it to true or false is crashing the whole app, please release a stable version :( |
Develop branch has been merged into master and created a 2.0 release. Please try again Cheers Sent from my iPhone
|
@ashleymills , thank you very much it works very well, all bugs solved :) |
Unable to compile/build Reachability using Xcode IDE version 7+/Swift 2.0+.
The text was updated successfully, but these errors were encountered: