From 958350aaa3543eba8ddaff07425f96e97efd5912 Mon Sep 17 00:00:00 2001 From: Albert Ho Date: Thu, 14 Nov 2024 17:30:16 -0800 Subject: [PATCH] replace local package with spm package --- .../CobraAppTest.xcodeproj/project.pbxproj | 22 ++++++++++- .../CobraDemo.xcodeproj/project.pbxproj | 37 +++++++++++-------- 2 files changed, 42 insertions(+), 17 deletions(-) diff --git a/binding/ios/CobraAppTest/CobraAppTest.xcodeproj/project.pbxproj b/binding/ios/CobraAppTest/CobraAppTest.xcodeproj/project.pbxproj index 0322bd8..d9a358a 100644 --- a/binding/ios/CobraAppTest/CobraAppTest.xcodeproj/project.pbxproj +++ b/binding/ios/CobraAppTest/CobraAppTest.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 60; + objectVersion = 55; objects = { /* Begin PBXBuildFile section */ @@ -18,6 +18,7 @@ 1E5B7AF12800B4A600F8BDDB /* sample.wav in Resources */ = {isa = PBXBuildFile; fileRef = 1E5B7AF02800B4A600F8BDDB /* sample.wav */; }; E14CDF492CE4349C00E6494C /* Cobra in Frameworks */ = {isa = PBXBuildFile; productRef = E14CDF482CE4349C00E6494C /* Cobra */; }; E14CDF4B2CE434D700E6494C /* Cobra in Frameworks */ = {isa = PBXBuildFile; productRef = E14CDF4A2CE434D700E6494C /* Cobra */; }; + E1643D4C2CE6DA14009027E6 /* Cobra in Frameworks */ = {isa = PBXBuildFile; productRef = E1643D4B2CE6DA14009027E6 /* Cobra */; }; E1CE29CB2CE5173900C4B43A /* Cobra in Frameworks */ = {isa = PBXBuildFile; productRef = E1CE29CA2CE5173900C4B43A /* Cobra */; }; /* End PBXBuildFile section */ @@ -62,6 +63,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + E1643D4C2CE6DA14009027E6 /* Cobra in Frameworks */, E14CDF492CE4349C00E6494C /* Cobra in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -236,7 +238,7 @@ ); mainGroup = 1E00643F27CEDF9B006FF6E9; packageReferences = ( - E14CDF442CE425EC00E6494C /* XCLocalSwiftPackageReference "../../../../cobra" */, + E1643D4A2CE6DA14009027E6 /* XCRemoteSwiftPackageReference "cobra" */, ); productRefGroup = 1E00644927CEDF9B006FF6E9 /* Products */; projectDirPath = ""; @@ -648,6 +650,17 @@ }; /* End XCLocalSwiftPackageReference section */ +/* Begin XCRemoteSwiftPackageReference section */ + E1643D4A2CE6DA14009027E6 /* XCRemoteSwiftPackageReference "cobra" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/Picovoice/cobra"; + requirement = { + kind = exactVersion; + version = 2.0.2; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + /* Begin XCSwiftPackageProductDependency section */ E14CDF482CE4349C00E6494C /* Cobra */ = { isa = XCSwiftPackageProductDependency; @@ -659,6 +672,11 @@ package = E14CDF442CE425EC00E6494C /* XCLocalSwiftPackageReference "../../../../cobra" */; productName = Cobra; }; + E1643D4B2CE6DA14009027E6 /* Cobra */ = { + isa = XCSwiftPackageProductDependency; + package = E1643D4A2CE6DA14009027E6 /* XCRemoteSwiftPackageReference "cobra" */; + productName = Cobra; + }; E1CE29CA2CE5173900C4B43A /* Cobra */ = { isa = XCSwiftPackageProductDependency; productName = Cobra; diff --git a/demo/ios/CobraDemo/CobraDemo.xcodeproj/project.pbxproj b/demo/ios/CobraDemo/CobraDemo.xcodeproj/project.pbxproj index b39f262..335c053 100644 --- a/demo/ios/CobraDemo/CobraDemo.xcodeproj/project.pbxproj +++ b/demo/ios/CobraDemo/CobraDemo.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 60; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ @@ -15,6 +15,7 @@ E14CDF512CE43AB600E6494C /* Cobra in Frameworks */ = {isa = PBXBuildFile; productRef = E14CDF502CE43AB600E6494C /* Cobra */; }; E14CDF592CE43D5F00E6494C /* Cobra in Frameworks */ = {isa = PBXBuildFile; productRef = E14CDF582CE43D5F00E6494C /* Cobra */; }; E14CDF5B2CE43D6600E6494C /* Cobra in Frameworks */ = {isa = PBXBuildFile; productRef = E14CDF5A2CE43D6600E6494C /* Cobra */; }; + E1643D492CE6D984009027E6 /* Cobra in Frameworks */ = {isa = PBXBuildFile; productRef = E1643D482CE6D984009027E6 /* Cobra */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -32,6 +33,7 @@ buildActionMask = 2147483647; files = ( E14CDF5B2CE43D6600E6494C /* Cobra in Frameworks */, + E1643D492CE6D984009027E6 /* Cobra in Frameworks */, E14CDF592CE43D5F00E6494C /* Cobra in Frameworks */, E14CDF512CE43AB600E6494C /* Cobra in Frameworks */, E14CDF4E2CE43A7600E6494C /* ios_voice_processor in Frameworks */, @@ -46,7 +48,6 @@ children = ( 02A11947268D39A700A2AC99 /* CobraDemo */, 02A11946268D39A700A2AC99 /* Products */, - 8DB92FF3DC81AB04D3FF7242 /* Pods */, ); sourceTree = ""; }; @@ -70,13 +71,6 @@ path = CobraDemo; sourceTree = ""; }; - 8DB92FF3DC81AB04D3FF7242 /* Pods */ = { - isa = PBXGroup; - children = ( - ); - path = Pods; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -122,7 +116,7 @@ mainGroup = 02A1193C268D39A700A2AC99; packageReferences = ( E14CDF4C2CE43A7600E6494C /* XCRemoteSwiftPackageReference "ios-voice-processor" */, - E14CDF542CE43B5B00E6494C /* XCLocalSwiftPackageReference "cobra" */, + E1643D472CE6D984009027E6 /* XCRemoteSwiftPackageReference "cobra" */, ); productRefGroup = 02A11946268D39A700A2AC99 /* Products */; projectDirPath = ""; @@ -342,7 +336,7 @@ /* End XCConfigurationList section */ /* Begin XCLocalSwiftPackageReference section */ - E14CDF542CE43B5B00E6494C /* XCLocalSwiftPackageReference "cobra" */ = { + E14CDF542CE43B5B00E6494C /* XCLocalSwiftPackageReference "../../../../cobra" */ = { isa = XCLocalSwiftPackageReference; relativePath = ../../../../cobra; }; @@ -353,8 +347,16 @@ isa = XCRemoteSwiftPackageReference; repositoryURL = "https://github.com/Picovoice/ios-voice-processor"; requirement = { - kind = upToNextMajorVersion; - minimumVersion = 1.2.0; + kind = exactVersion; + version = 1.2.0; + }; + }; + E1643D472CE6D984009027E6 /* XCRemoteSwiftPackageReference "cobra" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/Picovoice/cobra"; + requirement = { + kind = exactVersion; + version = 2.0.2; }; }; /* End XCRemoteSwiftPackageReference section */ @@ -371,12 +373,17 @@ }; E14CDF582CE43D5F00E6494C /* Cobra */ = { isa = XCSwiftPackageProductDependency; - package = E14CDF542CE43B5B00E6494C /* XCLocalSwiftPackageReference "cobra" */; + package = E14CDF542CE43B5B00E6494C /* XCLocalSwiftPackageReference "../../../../cobra" */; productName = Cobra; }; E14CDF5A2CE43D6600E6494C /* Cobra */ = { isa = XCSwiftPackageProductDependency; - package = E14CDF542CE43B5B00E6494C /* XCLocalSwiftPackageReference "cobra" */; + package = E14CDF542CE43B5B00E6494C /* XCLocalSwiftPackageReference "../../../../cobra" */; + productName = Cobra; + }; + E1643D482CE6D984009027E6 /* Cobra */ = { + isa = XCSwiftPackageProductDependency; + package = E1643D472CE6D984009027E6 /* XCRemoteSwiftPackageReference "cobra" */; productName = Cobra; }; /* End XCSwiftPackageProductDependency section */