-
Notifications
You must be signed in to change notification settings - Fork 66
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
Schemes not detected when owned by workspace #144
Comments
Yeah, can you please check whether you already filled-in your Xcode Server config first? I hacked it terribly, but there's an implicit dependency (first config Xcode Server, then config the Project) - because we need to fetch the list of devices from Xcode Server to show the list. |
the created both runs on all the simulators available at the moment. I am not sure what you mean with:
What would be the steps to have it working again? |
As in before you go into setting up your project/build template, first finish setting up Xcode Server credentials on the right side of the Buildasaur window (above). Please make sure you hit |
I was already doing that, unfortunately still doesn't work :( |
In that case, can you just run |
Sorry @valeriomazzeo, I deleted the comment, that information also has UUID of your devices, which you don't want public :) |
Fair enough, didn't look for it to be honest. By the way, it's not empty as you could see :D |
But I see that the devices were there. Very strange. I wonder if the issue is in XcodeServerSDK or in Buildasaur. Could you please clone https://github.com/czechboy0/XcodeServerSDK and in there's a playground inside. In there, try to call on server Thanks so much! |
It looks like it doesn't get executed at all? I don't get anything in the completion block, not even errors. |
Is your Xcode Server running on localhost? If you open import Foundation
import XcodeServerSDK
import XCPlayground
let serverConfig = try! XcodeServerConfig(host: "https://127.0.0.1", user: "MacUser", password: "Secr3t")
let server = XcodeServerFactory.server(serverConfig)
server.getDevices { (devices, error) -> () in
print(error)
print(devices)
}
XCPSetExecutionShouldContinueIndefinitely(true) This yields results on my machine (if you open the console at the bottom). |
That's exactly what I did. I managed to get the list of bots (so the playground was definitely working) but not the list of devices. |
Hmm that is weird indeed :( The API works, because |
I tried with a project importing XcodeServerSDK (without playground) and |
Ok then it must be somewhere in Buildasaur. Can you try to start over,
|
I can give it a try, where does Buildasaur store the configuration files? |
~/Library/Application Support/Buildasaur
|
it's exiting here:
Probably because inside the following function it enters into the
and that's because in
now I see why you meant with "it's hacky" :D
I think the whole problem is that running |
Oh, amazing work, @valeriomazzeo, thanks so much for taking the time and actually debugging this onsite. I would not have been able to help you from where I'm sitting :) This is interesting, because I remember adding support for schemes contained in either the project or workspace. Maybe they did change something in Xcode 7. Let me try to reproduce this. Thanks again! |
Damn, I can't reproduce this locally. Even when I change the ownership of the schemes to the workspace, Buildasaur picks them up just fine. I'm sorry - but could you try to change them back to be owned by the workspace and try Buildasaur again? If that doesn't work again that would be a bug in Buildasaur I would be very much interested in fixing. Thanks again 👍 |
It's not a bug in buildasaur. It's 'xcodebuild -list' that can't find the schemes with that kind of setup. As result, your script has nothing to parse. |
Are you able to isolate the cases when it doesn't work? Did you say it didn't find the schemes when they were under the workspace but did when under the project? What Xcode are you on? OS X? |
OS X Yosemite, El Capitan (wasn't working on both) Xcode 7 (I think they changed something in xcodebuild) Under the workspace can't find them, under the project it can. I was using -list for debugging, your script uses -scheme. Both said scheme not found. I can try and see if I can reproduce it with a new project. |
That would be great, thanks so much. If they changed something, I'd like to make sure to support it in Builda :) |
You're right, I reproduced it. It seems that previously when you ran Fix will be easy - we'll look at the file extension and if Thanks so much for finding this, I'll try to push a fix ASAP. 🎉 👍 |
no problem at all, it's the beauty of open source :) |
I also have this problem, tests take about 30 min since it runs on ALL simulators/devices 😄 |
@accatyyc Do you really mean this ticket or did you mean #147? |
I think I mean this. I can't select to run only on devices/certain simulators since nothing shows up during config. Which means it runs on everything |
Ha, okay, sorry. Yes, I'm fixing this as we speak, hopefully will have a fixed version released in about half an hour. |
Nice 😄 talk about quick support |
Ok, it might actually take a bit longer 😆 |
@valeriomazzeo I just merged the fix into master. Could you please try to pull and build from source and make sure that it's now working for you? @accatyyc feel free to do the same. I want to make sure it really works before I make the release. Thanks! |
Great, will try! |
I confirm that now it works in both configurations 👍 well done! PS: If you are about to make a new release, could you please have a look at #147 first? It's really really really annoying :S |
I have tested now, and it works with a quirk. First when opening Buildasaur, I verified the Xcode server settings first. Then started editing the scheme settings. No devices or options showed up, so I thought the bug was still there. But then I switched to a different scheme and back and all devices showed up! |
devices are pulled the moment you select a scheme from the dropdown menu I guess |
Yes. It should also re-pull on show of the whole screen, so that should be considered a bug I guess. |
This happens both with an existing template or when creating a new template.
I don't really know what more information I can include.
Screenshot attached below:
The text was updated successfully, but these errors were encountered: