[swift-corelibs-dev] Query on init methods in Data.swift

2016-08-02 Thread Simon Evans via swift-corelibs-dev
Hi I was looking at Data.swift and noticed that 2 of the init methods were different in corelibs-foundation v swift stdlib https://github.com/apple/swift-corelibs-foundation/blob/master/Foundation/Data.swift has public init?(capacity: Int) public init?(count: Int) https://github.com/apple/swif

Re: [swift-corelibs-dev] Query on init methods in Data.swift

2016-08-09 Thread Simon Evans via swift-corelibs-dev
h the > overlay over the next few weeks. > > - Tony > >> On Aug 2, 2016, at 9:27 AM, Simon Evans via swift-corelibs-dev >> wrote: >> >> Hi >> >> I was looking at Data.swift and noticed that 2 of the init methods >> were different

Re: [swift-corelibs-dev] Unable to build swift-corelibs-foundation in XCode 8.3.2

2017-06-02 Thread Simon Evans via swift-corelibs-dev
Yes I was also seeing this issue, the Xcode project needs the swift-version 3 set and some files were moved around during a URLSession change See if these 2 PRs fix it for you, they worked for me https://github.com/apple/swift-corelibs-foundation/pull/1017 https://github.com/apple/swift-corelibs

Re: [swift-corelibs-dev] Got some fatalErrors when running TestFoundation target

2017-06-19 Thread Simon Evans via swift-corelibs-dev
The issue looks to be the TZDIR (Time zoneinfo directory) has changed between 10.12 and 10.13 On 10.12 (Sierra), /usr/include/tzfile.h defines: $ grep TZDIR /usr/include/tzfile.h #ifndef TZDIR #define TZDIR "/usr/share/zoneinfo" /* Time zone object file directory */ #endif /* !defined TZDIR */

Re: [swift-corelibs-dev] TimeZone database

2017-07-06 Thread Simon Evans via swift-corelibs-dev
Ian I also saw this error, I think its because the TZDIR is different in the headers shipped with Xcode 9. Maybe the location of the timezone directory was moved between Sierra and High Sierra. What version of macOS are you testing on? If it has indeed moved between 10.12 and 10.13 it may requi

Re: [swift-corelibs-dev] TimeZone database

2017-07-06 Thread Simon Evans via swift-corelibs-dev
Looks like timezone files are in the ‘tzdata’ package. Maybe it got uninstalled or was never installed as part of the base. An ‘apt-get install tzdata’ might fix it. Simon > On 6 Jul 2017, at 20:20, Youming Lin via swift-corelibs-dev > wrote: > > That's odd. Maybe my ubuntu:16.04 image is ou

Re: [swift-corelibs-dev] Running TestFoundation in Instruments

2017-08-11 Thread Simon Evans via swift-corelibs-dev
Ian, Did you get it built in the end? I found the solution to the two symbols was to make them `public` instead of `internal` otherwise the functions were optimised away under release builds. However Im still working on getting the TestFoundation fully built with XCTest and SwiftFoundation in R