Xcodeproj
Xcodeproj copied to clipboard
Include non-shared schemes in Project.schemes
Hi!
~I've discovered that getting schemes for modern projects fails if scheme name differs from project name due to wrong paths. E.g. I have a .xcscheme
file located at ./Pods.xcodeproj/xcuserdata/USERNAME.xcuserdatad/xcschemes/Firebase.xcscheme
, where USERNAME
is a username of my user. However, current Xcodeproj
looks for .xcscheme
files only at project_path/xcshareddata/xcschemes/*.xcscheme
.~
~To fix that I've added **
there. This change should support both old and new paths.~
I've discovered that getting schemes for a project doesn't consider non-shared schemes.
To fix that I've added **
there. This change should support both shared and non-shared schemes.
Please add a test?
@dnkoutso Done.
@dnkoutso ping
Hi there,
I ran into a problem using Xcodeproj as part of fastlane (https://github.com/fastlane/fastlane/issues/14988).
When running schemes on a project that was generated with CMake and never opened with Xcode GUI (like in the context of a CI server), the method Xcodeproj::Project.schemes(path) doesn't actually returns the availables schemes as the files have not been created.
Maybe a better way would be to parse the output of xcodebuild -list
?
wilmot_p@Pierres-MacBook-Air ➜ proj.ios_mac git:(master) ✗ tree COCOS.xcodeproj
COCOS.xcodeproj
└── project.pbxproj
0 directories, 1 file
wilmot_p@Pierres-MacBook-Air ➜ proj.ios_mac git:(master) ✗ xcodexcodebuild -list
Information about project "COCOS":
Targets:
COCOS-mobile
COCOS-desktop
Build Configurations:
Debug
Release
If no build configuration is specified and -scheme is not passed then "Debug" is used.
Schemes:
COCOS-desktop
COCOS-mobile
libcocos2d iOS
libcocos2d Mac
libcocos2d tvOS
The CHANGELOG
needs to be fixed and the branch to be rebased.
Then we can merge this.
ping @lebedev
@dnkoutso do we have an estimate when can we expect this ?
It will ship with 1.12.1 in a week or two.
@lebedev if you'd like this change to land can you please rebase your branch against 1-12-stable
and update this PR to point against 1-12-stable
?
@lebedev I rebased your branch & moved the changelog to the right place