[osx] Use a more reliable hack for the getting the .xcscheme file into place
This commit is contained in:
99
platform/osx/scripts/osxsdk.xcscheme
Normal file
99
platform/osx/scripts/osxsdk.xcscheme
Normal file
@@ -0,0 +1,99 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0720"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8E4ECCDD911E8B357970AAED"
|
||||
BuildableName = "Mapbox.framework"
|
||||
BlueprintName = "osxsdk"
|
||||
ReferencedContainer = "container:../build/osx-x86_64/gyp/osx.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||
<Testables>
|
||||
<TestableReference
|
||||
skipped = "NO">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "968E0619FB16F6A55E27CDF3"
|
||||
BuildableName = "osxtest.xctest"
|
||||
BlueprintName = "osxtest"
|
||||
ReferencedContainer = "container:../build/osx-x86_64/gyp/osx.xcodeproj">
|
||||
</BuildableReference>
|
||||
</TestableReference>
|
||||
</Testables>
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8E4ECCDD911E8B357970AAED"
|
||||
BuildableName = "Mapbox.framework"
|
||||
BlueprintName = "osxsdk"
|
||||
ReferencedContainer = "container:../build/osx-x86_64/gyp/osx.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
allowLocationSimulation = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8E4ECCDD911E8B357970AAED"
|
||||
BuildableName = "Mapbox.framework"
|
||||
BlueprintName = "osxsdk"
|
||||
ReferencedContainer = "container:../build/osx-x86_64/gyp/osx.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
buildConfiguration = "Release"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8E4ECCDD911E8B357970AAED"
|
||||
BuildableName = "Mapbox.framework"
|
||||
BlueprintName = "osxsdk"
|
||||
ReferencedContainer = "container:../build/osx-x86_64/gyp/osx.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
||||
@@ -9,17 +9,8 @@ OSX_PROJ_PATH=./build/osx-x86_64/gyp/osx.xcodeproj
|
||||
|
||||
export BUILDTYPE=${BUILDTYPE:-Release}
|
||||
|
||||
if [[ ! -e "${OSX_PROJ_PATH}/xcshareddata/xcschemes/osxsdk.xcscheme" ]]; then
|
||||
# Generate schemes
|
||||
open -g "${OSX_PROJ_PATH}"
|
||||
sleep 20
|
||||
|
||||
# Share osxsdk scheme
|
||||
mkdir -pv "${OSX_PROJ_PATH}/xcshareddata/xcschemes/"
|
||||
mv -v \
|
||||
"${OSX_PROJ_PATH}/xcuserdata/${USER}.xcuserdatad/xcschemes/osxsdk.xcscheme" \
|
||||
"${OSX_PROJ_PATH}/xcshareddata/xcschemes/"
|
||||
fi
|
||||
mkdir -p "${OSX_PROJ_PATH}/xcshareddata/xcschemes"
|
||||
cp platform/osx/scripts/osxsdk.xcscheme "${OSX_PROJ_PATH}/xcshareddata/xcschemes/osxsdk.xcscheme"
|
||||
|
||||
xcodebuild -verbose \
|
||||
-sdk macosx${OSX_SDK_VERSION} \
|
||||
|
||||
Reference in New Issue
Block a user