From ebd39fc50f08705dcd5c85fa7192820a3cecd780 Mon Sep 17 00:00:00 2001 From: Hitesh Jain Date: Tue, 7 Mar 2023 15:50:32 +0530 Subject: [PATCH] Update Sample App with spm --- SimpleSurvey/Podfile | 6 -- SimpleSurvey/Pods/.DS_Store | Bin 6148 -> 0 bytes .../Simple Survey.xcodeproj/project.pbxproj | 82 ++---------------- .../contents.xcworkspacedata | 2 +- .../contents.xcworkspacedata | 10 --- .../xcdebugger/Breakpoints_v2.xcbkptlist | 23 ----- SwiftPackageManager.MD | 6 +- 7 files changed, 11 insertions(+), 118 deletions(-) delete mode 100644 SimpleSurvey/Podfile delete mode 100644 SimpleSurvey/Pods/.DS_Store delete mode 100644 SimpleSurvey/Simple Survey.xcworkspace/contents.xcworkspacedata delete mode 100644 SimpleSurvey/Simple Survey.xcworkspace/xcuserdata/benl.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist diff --git a/SimpleSurvey/Podfile b/SimpleSurvey/Podfile deleted file mode 100644 index 9ddb81f..0000000 --- a/SimpleSurvey/Podfile +++ /dev/null @@ -1,6 +0,0 @@ -source 'https://github.com/CocoaPods/Specs.git' -platform :ios, '8.0' - -target 'Simple Survey' do -pod 'surveymonkey-ios-sdk', '~> 2.0' -end diff --git a/SimpleSurvey/Pods/.DS_Store b/SimpleSurvey/Pods/.DS_Store deleted file mode 100644 index a215e63b67061ce5d887cfec7346e9f096d16fba..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK!AiqG5S^(7D}was!NdMS{~(qK9y|#31GGueLqdYZ`+l4MCHQ7%42@|@Pf}zC zX5MCYW_R-vG8rP`ODZpmuv;O3;( s2IwSA_(cs1z_)`YH0j(@jm;e9( diff --git a/SimpleSurvey/Simple Survey.xcodeproj/project.pbxproj b/SimpleSurvey/Simple Survey.xcodeproj/project.pbxproj index a20e266..a8c6ce9 100644 --- a/SimpleSurvey/Simple Survey.xcodeproj/project.pbxproj +++ b/SimpleSurvey/Simple Survey.xcodeproj/project.pbxproj @@ -13,11 +13,9 @@ 306F17151B30E44D0061D2DA /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 306F17141B30E44D0061D2DA /* Images.xcassets */; }; 306F17181B30E44D0061D2DA /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 306F17161B30E44D0061D2DA /* LaunchScreen.xib */; }; 306F172E1B30E4800061D2DA /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 306F172D1B30E4800061D2DA /* Main.storyboard */; }; - 9D4BFBD03216FA946B5441B5 /* libPods-Simple Survey.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 85AF8833AAC94C5E93F82F19 /* libPods-Simple Survey.a */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ - 18C2B18A91D66A63F77B16BA /* Pods-Simple Survey.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Simple Survey.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Simple Survey/Pods-Simple Survey.debug.xcconfig"; sourceTree = ""; }; 306F17041B30E44D0061D2DA /* Simple Survey.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Simple Survey.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 306F17081B30E44D0061D2DA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 306F17091B30E44D0061D2DA /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; @@ -28,8 +26,6 @@ 306F17141B30E44D0061D2DA /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 306F17171B30E44D0061D2DA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 306F172D1B30E4800061D2DA /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; - 85AF8833AAC94C5E93F82F19 /* libPods-Simple Survey.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Simple Survey.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - F3DFEBDDC617653F220DDB1C /* Pods-Simple Survey.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Simple Survey.release.xcconfig"; path = "Pods/Target Support Files/Pods-Simple Survey/Pods-Simple Survey.release.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -37,7 +33,6 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 9D4BFBD03216FA946B5441B5 /* libPods-Simple Survey.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -49,8 +44,6 @@ children = ( 306F17061B30E44D0061D2DA /* Simple Survey */, 306F17051B30E44D0061D2DA /* Products */, - D6C59386DFA2960DBBD6E924 /* Pods */, - CF8D63C05019DAD3E782628A /* Frameworks */, ); sourceTree = ""; }; @@ -86,23 +79,6 @@ name = "Supporting Files"; sourceTree = ""; }; - CF8D63C05019DAD3E782628A /* Frameworks */ = { - isa = PBXGroup; - children = ( - 85AF8833AAC94C5E93F82F19 /* libPods-Simple Survey.a */, - ); - name = Frameworks; - sourceTree = ""; - }; - D6C59386DFA2960DBBD6E924 /* Pods */ = { - isa = PBXGroup; - children = ( - 18C2B18A91D66A63F77B16BA /* Pods-Simple Survey.debug.xcconfig */, - F3DFEBDDC617653F220DDB1C /* Pods-Simple Survey.release.xcconfig */, - ); - name = Pods; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -110,18 +86,17 @@ isa = PBXNativeTarget; buildConfigurationList = 306F17271B30E44D0061D2DA /* Build configuration list for PBXNativeTarget "Simple Survey" */; buildPhases = ( - 9375FD41561EA3AEA4081594 /* [CP] Check Pods Manifest.lock */, 306F17001B30E44D0061D2DA /* Sources */, 306F17011B30E44D0061D2DA /* Frameworks */, 306F17021B30E44D0061D2DA /* Resources */, - ADCACA536BBD1BD49C943C22 /* [CP] Embed Pods Frameworks */, - A8D83F26EE2BB93C54BF7477 /* [CP] Copy Pods Resources */, ); buildRules = ( ); dependencies = ( ); name = "Simple Survey"; + packageProductDependencies = ( + ); productName = "Simple Survey"; productReference = 306F17041B30E44D0061D2DA /* Simple Survey.app */; productType = "com.apple.product-type.application"; @@ -145,10 +120,13 @@ developmentRegion = English; hasScannedForEncodings = 0; knownRegions = ( + English, en, Base, ); mainGroup = 306F16FB1B30E44D0061D2DA; + packageReferences = ( + ); productRefGroup = 306F17051B30E44D0061D2DA /* Products */; projectDirPath = ""; projectRoot = ""; @@ -171,54 +149,6 @@ }; /* End PBXResourcesBuildPhase section */ -/* Begin PBXShellScriptBuildPhase section */ - 9375FD41561EA3AEA4081594 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "[CP] Check Pods Manifest.lock"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; - showEnvVarsInLog = 0; - }; - A8D83F26EE2BB93C54BF7477 /* [CP] Copy Pods Resources */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "[CP] Copy Pods Resources"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Simple Survey/Pods-Simple Survey-resources.sh\"\n"; - showEnvVarsInLog = 0; - }; - ADCACA536BBD1BD49C943C22 /* [CP] Embed Pods Frameworks */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "[CP] Embed Pods Frameworks"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Simple Survey/Pods-Simple Survey-frameworks.sh\"\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - /* Begin PBXSourcesBuildPhase section */ 306F17001B30E44D0061D2DA /* Sources */ = { isa = PBXSourcesBuildPhase; @@ -333,7 +263,6 @@ }; 306F17281B30E44D0061D2DA /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 18C2B18A91D66A63F77B16BA /* Pods-Simple Survey.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; FRAMEWORK_SEARCH_PATHS = ( @@ -354,7 +283,6 @@ }; 306F17291B30E44D0061D2DA /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = F3DFEBDDC617653F220DDB1C /* Pods-Simple Survey.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; FRAMEWORK_SEARCH_PATHS = ( diff --git a/SimpleSurvey/Simple Survey.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/SimpleSurvey/Simple Survey.xcodeproj/project.xcworkspace/contents.xcworkspacedata index d647835..919434a 100644 --- a/SimpleSurvey/Simple Survey.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ b/SimpleSurvey/Simple Survey.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -2,6 +2,6 @@ + location = "self:"> diff --git a/SimpleSurvey/Simple Survey.xcworkspace/contents.xcworkspacedata b/SimpleSurvey/Simple Survey.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 5924113..0000000 --- a/SimpleSurvey/Simple Survey.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/SimpleSurvey/Simple Survey.xcworkspace/xcuserdata/benl.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/SimpleSurvey/Simple Survey.xcworkspace/xcuserdata/benl.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist deleted file mode 100644 index 9099faf..0000000 --- a/SimpleSurvey/Simple Survey.xcworkspace/xcuserdata/benl.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - diff --git a/SwiftPackageManager.MD b/SwiftPackageManager.MD index f31d55e..1eb971a 100644 --- a/SwiftPackageManager.MD +++ b/SwiftPackageManager.MD @@ -23,13 +23,17 @@ Install SurveyMonkey SDK via Swift Package Manager: Select the SurveyMonkey GitHub repository - `https://github.com/SurveyMonkey/surveymonkey-ios-sdk.git`: +Install Select the version. Note: Starting with the 2.1.0 release. +Install -Choose the SurveyMonkey SDK product to be installed in your app. +Choose the SurveyMonkeyiOSSDK product to be installed in your app target. + +Install ### Alternatively, add SurveyMonkeyiOSSDK to a `Package.swift` manifest