iOS: Re-share workspace schemes and fix packaging

This commit is contained in:
Reuben Morais 2020-08-05 14:44:34 +02:00
parent 8c840bed23
commit 4d98958b77
4 changed files with 82 additions and 5 deletions

View File

@ -2,9 +2,9 @@
<Workspace <Workspace
version = "1.0"> version = "1.0">
<FileRef <FileRef
location = "group:/Users/reubenmorais/Development/DeepSpeech/native_client/swift/mozilla_voice_stt.xcodeproj"> location = "group:mozilla_voice_stt.xcodeproj">
</FileRef> </FileRef>
<FileRef <FileRef
location = "group:/Users/reubenmorais/Development/DeepSpeech/native_client/swift/mozilla_voice_stt_test.xcodeproj"> location = "group:mozilla_voice_stt_test.xcodeproj">
</FileRef> </FileRef>
</Workspace> </Workspace>

View File

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1160"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "505B136024960D550007DADA"
BuildableName = "mozilla_voice_stt.framework"
BlueprintName = "mozilla_voice_stt"
ReferencedContainer = "container:mozilla_voice_stt.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 = "505B136924960D550007DADA"
BuildableName = "mozilla_voice_sttTests.xctest"
BlueprintName = "mozilla_voice_sttTests"
ReferencedContainer = "container:mozilla_voice_stt.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</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">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "505B136024960D550007DADA"
BuildableName = "mozilla_voice_stt.framework"
BlueprintName = "mozilla_voice_stt"
ReferencedContainer = "container:mozilla_voice_stt.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@ -17,14 +17,14 @@ package_libdeepspeech_as_zip "libmozilla_voice_stt.zip"
case $arch in case $arch in
"--x86_64") "--x86_64")
release_folder="Release-iphonesimulator" release_folder="Release-iphonesimulator"
artifact_name="deepspeech_ios.framework.x86_64.tar.xz" artifact_name="mozilla_voice_stt.framework.x86_64.tar.xz"
;; ;;
"--arm64") "--arm64")
release_folder="Release-iphoneos" release_folder="Release-iphoneos"
artifact_name="deepspeech_ios.framework.arm64.tar.xz" artifact_name="mozilla_voice_stt.framework.arm64.tar.xz"
;; ;;
esac esac
${TAR} -cf - \ ${TAR} -cf - \
-C ${DS_ROOT_TASK}/DeepSpeech/ds/native_client/swift/DerivedData/Build/Products/${release_folder}/ deepspeech_ios.framework \ -C ${DS_ROOT_TASK}/DeepSpeech/ds/native_client/swift/DerivedData/Build/Products/${release_folder}/ mozilla_voice_stt.framework \
| ${XZ} > "${TASKCLUSTER_ARTIFACTS}/${artifact_name}" | ${XZ} > "${TASKCLUSTER_ARTIFACTS}/${artifact_name}"