From e4f4b6b6cef0f973a82310b7f7d529e36be660c7 Mon Sep 17 00:00:00 2001 From: Grant Paul Date: Sat, 22 Oct 2016 17:48:47 -0700 Subject: [PATCH] Adjust loaded platform specifications for additional domains. --- Libraries/pbxspec/Sources/Manager.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Libraries/pbxspec/Sources/Manager.cpp b/Libraries/pbxspec/Sources/Manager.cpp index b93e18a3..68e2bb66 100644 --- a/Libraries/pbxspec/Sources/Manager.cpp +++ b/Libraries/pbxspec/Sources/Manager.cpp @@ -499,6 +499,7 @@ PlatformDomains(std::unordered_map const &platforms) auto iphoneos = platforms.find("iphoneos"); if (iphoneos != platforms.end()) { std::string root = iphoneos->second + "/Developer/Library/Xcode/PrivatePlugIns/IDEiOSPlatformSupportCore.ideplugin/Contents/Resources"; + domains.push_back({ "iphoneos-shared", root + "/" + "Shared.xcspec" }); domains.push_back({ "iphoneos", root + "/" + "Device.xcspec" }); domains.push_back({ "iphonesimulator", root + "/" + "Simulator.xcspec" }); } @@ -506,18 +507,16 @@ PlatformDomains(std::unordered_map const &platforms) auto appletvos = platforms.find("appletvos"); if (appletvos != platforms.end()) { std::string root = appletvos->second + "/Developer/Library/Xcode/PrivatePlugIns/IDEAppleTVSupportCore.ideplugin/Contents/Resources"; - domains.push_back({ "appletvos", root + "/" + "Shared.xcspec" }); + domains.push_back({ "appletvos-shared", root + "/" + "Shared.xcspec" }); domains.push_back({ "appletvos", root + "/" + "Device.xcspec" }); - domains.push_back({ "appletvsimulator", root + "/" + "Shared.xcspec" }); domains.push_back({ "appletvsimulator", root + "/" + "Simulator.xcspec" }); } auto watchos = platforms.find("watchos"); if (watchos != platforms.end()) { std::string root = watchos->second + "/Developer/Library/Xcode/PrivatePlugIns/IDEWatchSupportCore.ideplugin/Contents/Resources"; - domains.push_back({ "watchos", root + "/" + "Shared.xcspec" }); + domains.push_back({ "watchos-shared", root + "/" + "Shared.xcspec" }); domains.push_back({ "watchos", root + "/" + "Device.xcspec" }); - domains.push_back({ "watchsimulator", root + "/" + "Shared.xcspec" }); domains.push_back({ "watchsimulator", root + "/" + "Simulator.xcspec" }); }