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

kCFNumberFloat32Type error Linux #1106

Open
wants to merge 85 commits into
base: master
Choose a base branch
from

Conversation

dimabiserov
Copy link

/root/vaporTGBotExample/Sources/App/SwiftyJSON/SwiftyJSON.swift:306:10: error: cannot find 'kCFNumberFloat32Type' in scope
case kCFNumberFloat32Type:

how fix that?

shmuelk and others added 30 commits February 10, 2016 12:53
3 24 migration, works for OSX and Linux
* Kitura/Kitura#470 Added float validation on Linux

* Kitura/Kitura#469 Fixed SwiftyJSON to work on OS X with snapshot 05-09, tests also fixed and passing

* Kitura/Kitura#469 Removed OSX changes from Linux build

* Added UInt support for Linux
* Kitura/Kitura#590 Migrate to 06/20 binaries

* Added swift version
* Kitura/Kitura#529 updated and fixed SwiftyJSON tests

* Kitura/Kitura#529 Changes for Linux

* Kitura/Kitura#529 introduced JSON.AnyType typealias and reduced ifdefs

* Kitura/Kitura#529 added usage of JSON.AnyType in Tests

* Kitura/Kitura#529 fixed more AnyType vs AnyObject usages

* Kitura/Kitura#529 added autoreleasepool on Linux

* Kitura/Kitura#529 replaced AnyObject with AnyType in SequenceTypeTests

* Kitura/Kitura#529 replaced AnyObject with JSON.AnyType in StringTests

* Kitura/Kitura#529 split a dictionary literal with subdictionary

into explicit subdictionary defintion, while specifying dictionary types

* Kitura/Kitura#529 added conversion from [String: AnyType] to [String: String]

* Kitura/Kitura#529 removed tests for NSArray and NSDictionary on Linux

* Kitura/Kitura#529 added subarray and specifying literal type

* Kitura/Kitura#529 replaced CharacterSet with NSCharacterSet on Linux

* Kitura/Kitura#529 removed unnecessary use of NSArray/NSDictionary

* Kitura/Kitura#529 Fix OSX errors

* Kitura/Kitura#529 Reverted some changes, removed prints, added casting for Linux

* Kitura/Kitura#529 Enable tests to run on Linux

* Kitura/Kitura#529 Read data directly from file

* Kitura/Kitura#529 Change tests for Linux because of difference between OSX and Linux NSNumber.description

* Kitura/Kitura#529 changed number property on Linux to use rawBool property for Booleans

* added .build to .gitignore

* Kitura/Kitura#529 disabled a test due to defect in Foundation on Linux

defect: https://bugs.swift.org/browse/SR-1464?jql=text%20~%20%22NSNumber%22

* Kitura/Kitura#529 Fix Bool in Linux

* Kitura/Kitura#529 Changed/disabled tests because of bugs in NSNumber.description on Linux

* Kitura/Kitura#529 Disabled tests on Linux because of NSNumber bridging problems and issue 568

* Kitura/Kitura#529 Change nil to NSNull()

* Kitura/Kitura#529 Fix boolean from NSNumber treatment on Linux

* Kitura/Kitura#529 Change type of error in throw

* Kitura/Kitura#529 Disable tests on Linux because of lack of bridging

* Kitura/Kitura#529 Fix rawNumber setting for Bool. Disable tests on Linux because of a bug in CFNumberGetType

* Kitura/Kitura#529 Remove xcodeproj that was added by mistake

* Kitura/Kitura#529 Remove xcworkspace as well

* Kitura/Kitura#529 Remove debug printing, fix indentation
* Kitura/Kitura#644 Changes for OSX

* Kitura/Kitura#644 Migrated to use Data instead of NSData

* Kitura/Kitura#644 Linux changes

* Kitura/Kitura#644 NSData to Data migration and Linux changes

* Kitura/Kitura#644 NSData to Data migration

* Kitura/Kitura#644 Linux changes

* Kitura/Kitura#644 NSData to Data migration and Linux changes

* Kitura/Kitura#644 Updated swift version
Renamed the Kitura-Build repo to Package-Builder
Updated travis file to point to new code
* Kitura/Kitura#675 Required rename of test module and update of Swift version

* Kitura/Kitura#675 Swift language changes

* Kitura/Kitura#675 Foundation changes

* Kitura/Kitura#675 Changes for Linux

* Kitura/Kitura#675 Changes to get Bool working on OSX

* Kitura/Kitura#678 Changes to get tests to work on OSX

* Kitura/Kitura#678 Changes to get tests compiling on OSX

* Kitura/Kitura#675 Test module name changed

* Kitura/Kitura#675 Fix Dictionaries on macOS

* Kitura/Kitura#675 Fix Arrays on macOS

* Kitura/Kitura#675 Test module name changed

* Kitura/Kitura#675 rawValue of Bools is now a Bool. They can't be cast to Int or Double.

* Kitura/Kitura#675 Class of some NSNumber's has changed. compare fails.
* Kitura/Kitura#675 Required rename of test module and update of Swift version

* Kitura/Kitura#675 Swift language changes

* Kitura/Kitura#675 Foundation changes

* Kitura/Kitura#675 Changes for Linux

* Kitura/Kitura#675 Changes to get Bool working on OSX

* Kitura/Kitura#678 Changes to get tests to work on OSX

* Kitura/Kitura#678 Changes to get tests compiling on OSX

* Kitura/Kitura#675 Test module name changed

* Kitura/Kitura#675 Fix Dictionaries on macOS

* Kitura/Kitura#675 Fix Arrays on macOS

* Kitura/Kitura#675 Test module name changed

* Kitura/Kitura#675 rawValue of Bools is now a Bool. They can't be cast to Int or Double.

* Kitura/Kitura#675 Class of some NSNumber's has changed. compare fails.

* Kitura/Kitura#675 replaced bridge() with new bridge functions

_bridgeToSwift and _bridgeToObjectiveC

* Kitura/Kitura#675 changed signature of dictionary.enumerateKeysAndObjects

to dictionary.enumerateKeysAndObjects(using:
   {(key: Any, val: Any, stop: UnsafeMutablePointer<ObjCBool>)

* Kitura/Kitura#675 unified String.addingPercentEncoding on both Linux and macOS

* Kitura/Kitura#675 one more case of bridge() changed

to _bridgeToObjectiveC()

* Kitura/Kitura#675 removed redundant whitespace

* Kitura/Kitura#675 unified String.addingPercentEncoding on both Linux and macOS

* Kitura/Kitura#675 cast to String instead of NSString

of the key in enumerateKeysAndObjects

* DEVELOPMENT-SNAPSHOT-2016-08-18-a

* Kitura/Kitura#675 removed Indexable

it will be deprecated in Swift 4.0, implementing Collection is enough

* Kitura/Kitura#697 Updated Swift version
ianpartridge and others added 30 commits December 1, 2016 10:37
Parameterize parameters to Package-Builder
Re-enable code coverage for SwiftyJSON
Fix header spacing in README to enable highlighting
Removed _incremental protocol from JSONIndex struct
* Rename package for Swift 4.1, add 4.1 to Travis

* Disable UInt64.max Stringify test on Linux
* Use same test as OSX, as issue IBM-Swift/SwiftRuntime#183 appears fixed in swift 4.2 on linux

* Use a String for the key in the json rather than an Int. Using an Int causes failure in Linux with swift 4.2. Surely all json keys are Strings anyway?

* Trap Int before Doubles before Bools in setPObjectHelper otherwise swift4.2 on linux can interpret Ints as Doubles and Bools as Ints

* Reinstate linux swift 4.2 build on travis
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

Successfully merging this pull request may close these issues.

None yet