SwiftHN icon indicating copy to clipboard operation
SwiftHN copied to clipboard

Error building the project

Open Isuru-Nanayakkara opened this issue 11 years ago • 19 comments

I have Xcode 6 beta 4 installed. I'm trying to build the project but I keep getting this error.

Command /Applications/Xcode6-Beta4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-stdlib-tool failed with exit code 1

Any idea why?

Isuru-Nanayakkara avatar Jul 23 '14 10:07 Isuru-Nanayakkara

Clean, rinse and repeat. I got it from time to time.

Dimillian avatar Jul 23 '14 10:07 Dimillian

You may want to sign the project too if you build for a physical device.

Dimillian avatar Jul 23 '14 10:07 Dimillian

I cleaned and build it repeatedly. Removed the project, re-cloned it and tried building. Same issue.

No, I'm trying to just run it in the simulator.

Isuru-Nanayakkara avatar Jul 23 '14 10:07 Isuru-Nanayakkara

That error is misleading. It's due to with code signing. You need it to sign with your certificate and also turn off the setting for the today extension

TosinAF avatar Jul 23 '14 10:07 TosinAF

I'm trying to change the Team Name in the project Settings to None but that's not getting selected either.

Isuru-Nanayakkara avatar Jul 23 '14 10:07 Isuru-Nanayakkara

In, Capabilities for the project, have you turned off every capability on there?

TosinAF avatar Jul 23 '14 10:07 TosinAF

No. Background Modes is ON with Background Fetch ticked. Also App groups is ON.

screen shot 2014-07-23 at 4 23 15 pm

Isuru-Nanayakkara avatar Jul 23 '14 10:07 Isuru-Nanayakkara

Yeah, turn them off, unless you want to create a provisiong profile with those capabilities added.

TosinAF avatar Jul 23 '14 11:07 TosinAF

Turned them off for both SwiftHN and SwiftHNToday targets but no good. Still getting the same error.

Isuru-Nanayakkara avatar Jul 23 '14 11:07 Isuru-Nanayakkara

Occurred same problem too, but cleared. Did you changed the Team Name for all Projects? SwiftHN, SwiftHNToday and SwiftHNShared.

TETRA2000 avatar Jul 24 '14 05:07 TETRA2000

That's the problem. I can't change the Team names no matter how many times I select 'None' from the drop down, its always selected to Unknown name (Z6P74P6T99)

Isuru-Nanayakkara avatar Jul 24 '14 05:07 Isuru-Nanayakkara

So how about to select your Provisioning Profile?

TETRA2000 avatar Jul 24 '14 10:07 TETRA2000

As SwiftHN support some capabilities (like group sharing for data sharing between extensions & app) I would strongly suggest you to generate your own certificate and provisioning profile and put them in the Xcode build settings. As I'll evolve the project it'll support more and more features requiring correct code signing of the application if you want to run it.

Dimillian avatar Jul 24 '14 10:07 Dimillian

This Macbook I'm trying to run it is not my own and also I don't have a paid developer account yet so I can't generate Provisioning Profiles also :( But I'll be getting one soon so I guess I'll have to be patient until then.

Isuru-Nanayakkara avatar Jul 24 '14 10:07 Isuru-Nanayakkara

Ah yeah :( if you don't have a paid developer account I don't think you can generate certificates and profile. Hmm so yeah, you should try as @TosinAF & @TETRA2000 said and disable all feature related to code signing.

Dimillian avatar Jul 24 '14 10:07 Dimillian

After a lot of play with provisioning and disabling of linking the today extension I was able to get it to compile. I'm just curious, is there a way to compile with the today extension working yet?

finder39 avatar Jul 28 '14 03:07 finder39

Not yet, I'm waiting for the next beta, this is too bugged at the moment.

Thomas Ricouard http://thomasricouard.info http://twitter.com/Dimillian

On 28 Jul 2014, at 05:12, finder39 [email protected] wrote:

After a lot of play with provisioning and disabling of linking the today extension I was able to get it to compile. I'm just curious, is there a way to compile with the today extension working yet?

— Reply to this email directly or view it on GitHub.

Dimillian avatar Jul 28 '14 06:07 Dimillian

I see you got the extension working! Nice! I'm still have trouble building the new code with the extension enabled :/

finder39 avatar Jul 31 '14 21:07 finder39

@finder39 Since you contribute to it, maybe I can add you to my dev account team? This way you could properly sign the project. I believe Apple is doing some code signing enforcement for extension :/

Dimillian avatar Aug 01 '14 07:08 Dimillian