[swift-corelibs-dev] Getting tests to work in xcode for foundation.

2016-09-06 Thread Dan Tugendraich via swift-corelibs-dev
I have performed all the getting started steps in; 
https://github.com/apple/swift-corelibs-foundation/blob/swift-3.0-branch/Docs/GettingStarted.md
 

Everything seems to be working fine, I can build the SwiftFoundation target and 
I can run the TestFoundation target. In the console I can see tests are being 
run. One of the tests are failing in the test-suite. But I have no way of 
checking which test and why because the test navigator window in Xcode is 
empty. It wants me to add a new target, but I want it to show the already 
existing test target ”TestFoundation”. Any ideas on how to achieve this?
Dan Tugendraich

 


Kärleksgatan 2, 211 45 Malmö 
+46 (0) 40 330 480 
___
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev


Re: [swift-corelibs-dev] Getting tests to work in xcode for foundation.

2016-09-06 Thread Dan Tugendraich via swift-corelibs-dev
Hey Brian,

thank you for a quick answer. I’ll try to post a radar to get this working.
That sentence you’re asking about is actually phrased incorrectly by me. Xcode 
isn’t prompting me to adda new test target, but if I want something to be shown 
in the test navigator I have to add a new test target myself.

I’ll post a radar and see where that gets us.

Thank you again.
Dan Tugendraich

 <http://www.ustwo.com/>


Kärleksgatan 2, 211 45 Malmö <http://www.ustwo.com/>
+46 (0) 40 330 480 <http://www.ustwo.com/>
> 6 sep. 2016 kl. 12:15 skrev Brian Gesiak :
> 
> Dan,
> 
> Unfortunately, the method that Xcode uses to display tests in the test 
> navigator is private. We are unable to implement that functionality in 
> swift-corelibs-xctest. If you'd like to see this working, please file an 
> Apple Radar that asks the Developer Tools team to document how this system 
> works. Until then, you won't see any tests or their results in Xcode's test 
> navigator. :(
> 
> Instead, you'll need to check the test output printed to stdout. If you open 
> the console in Xcode, you should see the output from each of the tests, 
> including whether they passed or failed. That should tell you which test is 
> failing,
> 
> Can you explain what you mean by "[the test navigator in Xcode] wants me to 
> add a new target"? Is Xcode prompting you to add a unit test target?
> 
> - Brian Gesiak
> 
> 
> 
> On Tue, Sep 6, 2016 at 5:14 AM -0400, "Dan Tugendraich via 
> swift-corelibs-dev"  <mailto:swift-corelibs-dev@swift.org>> wrote:
> 
> I have performed all the getting started steps in; 
> https://github.com/apple/swift-corelibs-foundation/blob/swift-3.0-branch/Docs/GettingStarted.md
>  
> <https://github.com/apple/swift-corelibs-foundation/blob/swift-3.0-branch/Docs/GettingStarted.md>
> Everything seems to be working fine, I can build the SwiftFoundation target 
> and I can run the TestFoundation target. In the console I can see tests are 
> being run. One of the tests are failing in the test-suite. But I have no way 
> of checking which test and why because the test navigator window in Xcode is 
> empty. It wants me to add a new target, but I want it to show the already 
> existing test target ”TestFoundation”. Any ideas on how to achieve this?
> Dan Tugendraich
> 
>  <http://www.ustwo.com/>
> 
> 
> Kärleksgatan 2, 211 45 Malmö <http://www.ustwo.com/>
> +46 (0) 40 330 480 <http://www.ustwo.com/>

___
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev


[swift-corelibs-dev] Swift compiler errors in clean build.

2016-09-06 Thread Dan Tugendraich via swift-corelibs-dev

I have a clean clone of swift-corelibs-foundation. I’m on the master branch. 
What should I do with the 2 compiler errors? 

"/Users/tugendraich/Documents/Projects/iOS/swift-source/swift-corelibs-foundation/Foundation/NSTimeZone.swift:212:41:
 '_StructType' (aka 'Dictionary') is not convertible to 
'[String : String]’”
and 
"/Users/tugendraich/Documents/Projects/iOS/swift-source/swift-corelibs-foundation/Foundation/NSURLSession/EasyHandle.swift:299:37:
 Use of undeclared type ’TextOutputStreamable’"

There is also a test that failes, it’s the "’TestNSData.test_replaceBytes’” 
one. Should I start my contribution from another branch or is there something I 
have missed in the setup of my project?

Thank you.

Dan Tugendraich

 


Kärleksgatan 2, 211 45 Malmö 
+46 (0) 40 330 480 
___
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev


Re: [swift-corelibs-dev] Swift compiler errors in clean build.

2016-09-06 Thread Dan Tugendraich via swift-corelibs-dev
Hi Henry,

I’m using, Xcode 8 beta 6 and swift 3.0 preview 6 snapshot. Those are the 
latest ones on swift.org that I can find.
Dan Tugendraich

 <http://www.ustwo.com/>


Kärleksgatan 2, 211 45 Malmö <http://www.ustwo.com/>
+46 (0) 40 330 480 <http://www.ustwo.com/>
> 6 sep. 2016 kl. 16:25 skrev Henry Betts :
> 
> Hi Dan,
> 
> Sounds like you’re not using the latest swift toolchain. You need to download 
> the latest development snapshot from https://swift.org/download/#snapshots 
> <https://swift.org/download/#snapshots> and then enable it in Xcode 
> (Preferences -> Components -> Toolchains) in order to build the most recent 
> versions of foundation.
> 
> Henry
> 
>> On 6 Sep 2016, at 14:04, Dan Tugendraich via swift-corelibs-dev 
>> mailto:swift-corelibs-dev@swift.org>> wrote:
>> 
>> 
>> I have a clean clone of swift-corelibs-foundation. I’m on the master branch. 
>> What should I do with the 2 compiler errors? 
>> 
>> "/Users/tugendraich/Documents/Projects/iOS/swift-source/swift-corelibs-foundation/Foundation/NSTimeZone.swift:212:41:
>>  '_StructType' (aka 'Dictionary') is not convertible to 
>> '[String : String]’”
>> and 
>> "/Users/tugendraich/Documents/Projects/iOS/swift-source/swift-corelibs-foundation/Foundation/NSURLSession/EasyHandle.swift:299:37:
>>  Use of undeclared type ’TextOutputStreamable’"
>> 
>> There is also a test that failes, it’s the "’TestNSData.test_replaceBytes’” 
>> one. Should I start my contribution from another branch or is there 
>> something I have missed in the setup of my project?
>> 
>> Thank you.
>> 
>> Dan Tugendraich
>> 
>>  <http://www.ustwo.com/>
>> 
>> 
>> Kärleksgatan 2, 211 45 Malmö <http://www.ustwo.com/>
>> +46 (0) 40 330 480 <http://www.ustwo.com/>
>> ___
>> swift-corelibs-dev mailing list
>> swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>
>> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev 
>> <https://lists.swift.org/mailman/listinfo/swift-corelibs-dev>
> 

___
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev


Re: [swift-corelibs-dev] Swift compiler errors in clean build.

2016-09-07 Thread Dan Tugendraich via swift-corelibs-dev
Henry,

breakthrough! Thank you very much. 
Dan Tugendraich

 <http://www.ustwo.com/>


Kärleksgatan 2, 211 45 Malmö <http://www.ustwo.com/>
+46 (0) 40 330 480 <http://www.ustwo.com/>
> 7 sep. 2016 kl. 12:12 skrev Henry Betts :
> 
> Dan,
> 
> You need the latest development snapshot - these are usually updated 
> everyday. The preview 6 snapshot that you are using is a few weeks old.
> 
> Henry
> 
>> On 7 Sep 2016, at 07:53, Dan Tugendraich > <mailto:tugendra...@ustwo.com>> wrote:
>> 
>> Hi Henry,
>> 
>> I’m using, Xcode 8 beta 6 and swift 3.0 preview 6 snapshot. Those are the 
>> latest ones on swift.org <http://swift.org/> that I can find.
>> Dan Tugendraich
>> 
>>  <http://www.ustwo.com/>
>> 
>> 
>> Kärleksgatan 2, 211 45 Malmö <http://www.ustwo.com/>
>> +46 (0) 40 330 480 <http://www.ustwo.com/>
>>> 6 sep. 2016 kl. 16:25 skrev Henry Betts >> <mailto:henry.be...@btconnect.com>>:
>>> 
>>> Hi Dan,
>>> 
>>> Sounds like you’re not using the latest swift toolchain. You need to 
>>> download the latest development snapshot from 
>>> https://swift.org/download/#snapshots 
>>> <https://swift.org/download/#snapshots> and then enable it in Xcode 
>>> (Preferences -> Components -> Toolchains) in order to build the most recent 
>>> versions of foundation.
>>> 
>>> Henry
>>> 
>>>> On 6 Sep 2016, at 14:04, Dan Tugendraich via swift-corelibs-dev 
>>>> mailto:swift-corelibs-dev@swift.org>> wrote:
>>>> 
>>>> 
>>>> I have a clean clone of swift-corelibs-foundation. I’m on the master 
>>>> branch. What should I do with the 2 compiler errors? 
>>>> 
>>>> "/Users/tugendraich/Documents/Projects/iOS/swift-source/swift-corelibs-foundation/Foundation/NSTimeZone.swift:212:41:
>>>>  '_StructType' (aka 'Dictionary') is not convertible to 
>>>> '[String : String]’”
>>>> and 
>>>> "/Users/tugendraich/Documents/Projects/iOS/swift-source/swift-corelibs-foundation/Foundation/NSURLSession/EasyHandle.swift:299:37:
>>>>  Use of undeclared type ’TextOutputStreamable’"
>>>> 
>>>> There is also a test that failes, it’s the 
>>>> "’TestNSData.test_replaceBytes’” one. Should I start my contribution from 
>>>> another branch or is there something I have missed in the setup of my 
>>>> project?
>>>> 
>>>> Thank you.
>>>> 
>>>> Dan Tugendraich
>>>> 
>>>>  <http://www.ustwo.com/>
>>>> 
>>>> 
>>>> Kärleksgatan 2, 211 45 Malmö <http://www.ustwo.com/>
>>>> +46 (0) 40 330 480 <http://www.ustwo.com/>
>>>> ___
>>>> swift-corelibs-dev mailing list
>>>> swift-corelibs-dev@swift.org <mailto:swift-corelibs-dev@swift.org>
>>>> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev 
>>>> <https://lists.swift.org/mailman/listinfo/swift-corelibs-dev>
>>> 
>> 
> 

___
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev