diff --git a/Mobile Buy SDK/Mobile Buy SDK.xcodeproj/project.pbxproj b/Mobile Buy SDK/Mobile Buy SDK.xcodeproj/project.pbxproj index e8eee2a..a1247a9 100644 --- a/Mobile Buy SDK/Mobile Buy SDK.xcodeproj/project.pbxproj +++ b/Mobile Buy SDK/Mobile Buy SDK.xcodeproj/project.pbxproj @@ -7,15 +7,15 @@ objects = { /* Begin PBXAggregateTarget section */ - 904FB61A1AE03DC500EA1758 /* Universal Framework */ = { + 904FB61A1AE03DC500EA1758 /* Static Universal Framework */ = { isa = PBXAggregateTarget; - buildConfigurationList = 904FB61B1AE03DC500EA1758 /* Build configuration list for PBXAggregateTarget "Universal Framework" */; + buildConfigurationList = 904FB61B1AE03DC500EA1758 /* Build configuration list for PBXAggregateTarget "Static Universal Framework" */; buildPhases = ( 904FB61F1AE03DCF00EA1758 /* ShellScript */, ); dependencies = ( ); - name = "Universal Framework"; + name = "Static Universal Framework"; productName = "Mobile Buy SDK-Universal"; }; 90E80E401AFAB0B9003A9909 /* Documentation */ = { @@ -176,6 +176,8 @@ 901931691BC5B9BC00D1134E /* BUYProduct.h in Headers */ = {isa = PBXBuildFile; fileRef = 2AF52A7C1A700B0A0087DB2C /* BUYProduct.h */; settings = {ATTRIBUTES = (Public, ); }; }; 9019316A1BC5B9BC00D1134E /* BUYSerializable.h in Headers */ = {isa = PBXBuildFile; fileRef = F76CFF1E19CB7C500079C703 /* BUYSerializable.h */; settings = {ATTRIBUTES = (Public, ); }; }; 9019316B1BC5B9BC00D1134E /* BUYProductVariant.h in Headers */ = {isa = PBXBuildFile; fileRef = 2AF52A811A700B0A0087DB2C /* BUYProductVariant.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 9035F5FA1BC81D050009DD3B /* Buy.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 901931701BC5B9BC00D1134E /* Buy.framework */; }; + 9035F5FB1BC81D050009DD3B /* Buy.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 901931701BC5B9BC00D1134E /* Buy.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 903BCC7C1B7D1C2D00C21FEB /* BUYProductViewErrorView.h in Headers */ = {isa = PBXBuildFile; fileRef = 903BCC7A1B7D1C2D00C21FEB /* BUYProductViewErrorView.h */; }; 903BCC7D1B7D1C2D00C21FEB /* BUYProductViewErrorView.m in Sources */ = {isa = PBXBuildFile; fileRef = 903BCC7B1B7D1C2D00C21FEB /* BUYProductViewErrorView.m */; }; 904606AF1B6BC8D700754173 /* BUYProductImageCollectionViewCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 904606AD1B6BC8D700754173 /* BUYProductImageCollectionViewCell.h */; }; @@ -230,7 +232,6 @@ BE6C07061BB1E46900BD9F7B /* mocked_responses.json in Resources */ = {isa = PBXBuildFile; fileRef = BE6C07051BB1E46900BD9F7B /* mocked_responses.json */; }; BE98DB4F1BB1ED3E00C29564 /* OHHTTPStubs in Resources */ = {isa = PBXBuildFile; fileRef = BE98DB4E1BB1ED3E00C29564 /* OHHTTPStubs */; settings = {ASSET_TAGS = (); }; }; BE98DB5C1BB1F4D000C29564 /* OHHTTPStubsResponse+Helpers.m in Sources */ = {isa = PBXBuildFile; fileRef = BE98DB5B1BB1F4D000C29564 /* OHHTTPStubsResponse+Helpers.m */; settings = {ASSET_TAGS = (); }; }; - BE9A643F1B503C2F0033E558 /* Buy.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BE9A64281B503C2F0033E558 /* Buy.framework */; }; BE9A64471B503C8B0033E558 /* BUYClient.h in Headers */ = {isa = PBXBuildFile; fileRef = F7FDA17019C93F6F00AF4E93 /* BUYClient.h */; settings = {ATTRIBUTES = (Public, ); }; }; BE9A64481B503C900033E558 /* BUYClient.m in Sources */ = {isa = PBXBuildFile; fileRef = F7FDA17119C93F6F00AF4E93 /* BUYClient.m */; }; BE9A64491B503C940033E558 /* BUYCart.h in Headers */ = {isa = PBXBuildFile; fileRef = F773744719C77A210039681C /* BUYCart.h */; settings = {ATTRIBUTES = (Public, ); }; }; @@ -330,14 +331,14 @@ /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ - 90DAEC341BC6E50B007555A5 /* PBXContainerItemProxy */ = { + 9035F5FE1BC81D280009DD3B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = F773741519C770CB0039681C /* Project object */; proxyType = 1; remoteGlobalIDString = BE9A64271B503C2F0033E558; - remoteInfo = Buy; + remoteInfo = "Buy Static"; }; - BE9A643D1B503C2F0033E558 /* PBXContainerItemProxy */ = { + 90DAEC341BC6E50B007555A5 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = F773741519C770CB0039681C /* Project object */; proxyType = 1; @@ -353,6 +354,7 @@ dstPath = ""; dstSubfolderSpec = 10; files = ( + 9035F5FB1BC81D050009DD3B /* Buy.framework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -572,7 +574,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - BE9A643F1B503C2F0033E558 /* Buy.framework in Frameworks */, + 9035F5FA1BC81D050009DD3B /* Buy.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1091,9 +1093,9 @@ /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ - 901930E11BC5B9BC00D1134E /* Buy Dynamic */ = { + 901930E11BC5B9BC00D1134E /* Buy */ = { isa = PBXNativeTarget; - buildConfigurationList = 9019316D1BC5B9BC00D1134E /* Build configuration list for PBXNativeTarget "Buy Dynamic" */; + buildConfigurationList = 9019316D1BC5B9BC00D1134E /* Build configuration list for PBXNativeTarget "Buy" */; buildPhases = ( 901930E21BC5B9BC00D1134E /* Sources */, 901931251BC5B9BC00D1134E /* Frameworks */, @@ -1104,7 +1106,7 @@ ); dependencies = ( ); - name = "Buy Dynamic"; + name = Buy; productName = Buy; productReference = 901931701BC5B9BC00D1134E /* Buy.framework */; productType = "com.apple.product-type.framework"; @@ -1139,16 +1141,16 @@ buildRules = ( ); dependencies = ( - BE9A643E1B503C2F0033E558 /* PBXTargetDependency */, + 9035F5FF1BC81D280009DD3B /* PBXTargetDependency */, ); name = Playground; productName = Playground; productReference = 90F7BA681B0D1DAF0067864D /* Playground.app */; productType = "com.apple.product-type.application"; }; - BE9A64271B503C2F0033E558 /* Buy */ = { + BE9A64271B503C2F0033E558 /* Buy Static */ = { isa = PBXNativeTarget; - buildConfigurationList = BE9A64411B503C2F0033E558 /* Build configuration list for PBXNativeTarget "Buy" */; + buildConfigurationList = BE9A64411B503C2F0033E558 /* Build configuration list for PBXNativeTarget "Buy Static" */; buildPhases = ( BE9A64231B503C2F0033E558 /* Sources */, BE9A64241B503C2F0033E558 /* Frameworks */, @@ -1159,7 +1161,7 @@ ); dependencies = ( ); - name = Buy; + name = "Buy Static"; productName = Buy; productReference = BE9A64281B503C2F0033E558 /* Buy.framework */; productType = "com.apple.product-type.framework"; @@ -1174,6 +1176,9 @@ LastUpgradeCheck = 0630; ORGANIZATIONNAME = "Shopify Inc."; TargetAttributes = { + 901930E11BC5B9BC00D1134E = { + DevelopmentTeam = A7XGC83MZE; + }; 904FB61A1AE03DC500EA1758 = { CreatedOnToolsVersion = 6.3; }; @@ -1194,6 +1199,7 @@ }; BE9A64271B503C2F0033E558 = { CreatedOnToolsVersion = 6.4; + DevelopmentTeam = A7XGC83MZE; }; }; }; @@ -1210,12 +1216,12 @@ projectDirPath = ""; projectRoot = ""; targets = ( - 904FB61A1AE03DC500EA1758 /* Universal Framework */, + 904FB61A1AE03DC500EA1758 /* Static Universal Framework */, 90E80E401AFAB0B9003A9909 /* Documentation */, 90F7BA671B0D1DAF0067864D /* Playground */, 90F592EB1B0D5EFE0026B382 /* Mobile Buy SDK Tests */, - BE9A64271B503C2F0033E558 /* Buy */, - 901930E11BC5B9BC00D1134E /* Buy Dynamic */, + BE9A64271B503C2F0033E558 /* Buy Static */, + 901930E11BC5B9BC00D1134E /* Buy */, ); }; /* End PBXProject section */ @@ -1467,15 +1473,15 @@ /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ - 90DAEC351BC6E50B007555A5 /* PBXTargetDependency */ = { + 9035F5FF1BC81D280009DD3B /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = BE9A64271B503C2F0033E558 /* Buy */; - targetProxy = 90DAEC341BC6E50B007555A5 /* PBXContainerItemProxy */; + target = BE9A64271B503C2F0033E558 /* Buy Static */; + targetProxy = 9035F5FE1BC81D280009DD3B /* PBXContainerItemProxy */; }; - BE9A643E1B503C2F0033E558 /* PBXTargetDependency */ = { + 90DAEC351BC6E50B007555A5 /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = BE9A64271B503C2F0033E558 /* Buy */; - targetProxy = BE9A643D1B503C2F0033E558 /* PBXContainerItemProxy */; + target = BE9A64271B503C2F0033E558 /* Buy Static */; + targetProxy = 90DAEC341BC6E50B007555A5 /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ @@ -1503,6 +1509,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CURRENT_PROJECT_VERSION = 1; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; @@ -1521,7 +1528,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MACH_O_TYPE = mh_dylib; MODULEMAP_FILE = ""; - PRODUCT_NAME = Buy; + PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; @@ -1533,6 +1540,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; CURRENT_PROJECT_VERSION = 1; @@ -1548,7 +1556,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MACH_O_TYPE = mh_dylib; MODULEMAP_FILE = ""; - PRODUCT_NAME = Buy; + PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; @@ -1698,6 +1706,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; CURRENT_PROJECT_VERSION = 1; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; @@ -1716,7 +1725,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MACH_O_TYPE = staticlib; MODULEMAP_FILE = "${PROJECT_DIR}/Mobile Buy SDK/Static Framework/Buy.modulemap"; - PRODUCT_NAME = "$(TARGET_NAME)"; + PRODUCT_NAME = Buy; SKIP_INSTALL = YES; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; @@ -1728,6 +1737,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; CURRENT_PROJECT_VERSION = 1; @@ -1743,7 +1753,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MACH_O_TYPE = staticlib; MODULEMAP_FILE = "${PROJECT_DIR}/Mobile Buy SDK/Static Framework/Buy.modulemap"; - PRODUCT_NAME = "$(TARGET_NAME)"; + PRODUCT_NAME = Buy; SKIP_INSTALL = YES; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; @@ -1836,7 +1846,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 9019316D1BC5B9BC00D1134E /* Build configuration list for PBXNativeTarget "Buy Dynamic" */ = { + 9019316D1BC5B9BC00D1134E /* Build configuration list for PBXNativeTarget "Buy" */ = { isa = XCConfigurationList; buildConfigurations = ( 9019316E1BC5B9BC00D1134E /* Debug */, @@ -1845,7 +1855,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 904FB61B1AE03DC500EA1758 /* Build configuration list for PBXAggregateTarget "Universal Framework" */ = { + 904FB61B1AE03DC500EA1758 /* Build configuration list for PBXAggregateTarget "Static Universal Framework" */ = { isa = XCConfigurationList; buildConfigurations = ( 904FB61C1AE03DC500EA1758 /* Debug */, @@ -1881,7 +1891,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - BE9A64411B503C2F0033E558 /* Build configuration list for PBXNativeTarget "Buy" */ = { + BE9A64411B503C2F0033E558 /* Build configuration list for PBXNativeTarget "Buy Static" */ = { isa = XCConfigurationList; buildConfigurations = ( BE9A64421B503C2F0033E558 /* Debug */, diff --git a/Mobile Buy SDK/Mobile Buy SDK.xcodeproj/xcshareddata/xcschemes/Buy Dynamic.xcscheme b/Mobile Buy SDK/Mobile Buy SDK.xcodeproj/xcshareddata/xcschemes/Buy Dynamic.xcscheme deleted file mode 100644 index 3cbe15a..0000000 --- a/Mobile Buy SDK/Mobile Buy SDK.xcodeproj/xcshareddata/xcschemes/Buy Dynamic.xcscheme +++ /dev/null @@ -1,80 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Scheme - LastUpgradeVersion = "0700" - version = "1.3"> - <BuildAction - parallelizeBuildables = "YES" - buildImplicitDependencies = "YES"> - <BuildActionEntries> - <BuildActionEntry - buildForTesting = "YES" - buildForRunning = "YES" - buildForProfiling = "YES" - buildForArchiving = "YES" - buildForAnalyzing = "YES"> - <BuildableReference - BuildableIdentifier = "primary" - BlueprintIdentifier = "901930E11BC5B9BC00D1134E" - BuildableName = "Buy.framework" - BlueprintName = "Buy Dynamic" - ReferencedContainer = "container:Mobile Buy SDK.xcodeproj"> - </BuildableReference> - </BuildActionEntry> - </BuildActionEntries> - </BuildAction> - <TestAction - buildConfiguration = "Debug" - selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" - selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - shouldUseLaunchSchemeArgsEnv = "YES"> - <Testables> - </Testables> - <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 = "901930E11BC5B9BC00D1134E" - BuildableName = "Buy.framework" - BlueprintName = "Buy Dynamic" - ReferencedContainer = "container:Mobile Buy SDK.xcodeproj"> - </BuildableReference> - </MacroExpansion> - <AdditionalOptions> - </AdditionalOptions> - </LaunchAction> - <ProfileAction - buildConfiguration = "Release" - shouldUseLaunchSchemeArgsEnv = "YES" - savedToolIdentifier = "" - useCustomWorkingDirectory = "NO" - debugDocumentVersioning = "YES"> - <MacroExpansion> - <BuildableReference - BuildableIdentifier = "primary" - BlueprintIdentifier = "901930E11BC5B9BC00D1134E" - BuildableName = "Buy.framework" - BlueprintName = "Buy Dynamic" - ReferencedContainer = "container:Mobile Buy SDK.xcodeproj"> - </BuildableReference> - </MacroExpansion> - </ProfileAction> - <AnalyzeAction - buildConfiguration = "Debug"> - </AnalyzeAction> - <ArchiveAction - buildConfiguration = "Release" - revealArchiveInOrganizer = "YES"> - </ArchiveAction> -</Scheme> diff --git a/Mobile Buy SDK/Mobile Buy SDK.xcodeproj/xcshareddata/xcschemes/Buy.xcscheme b/Mobile Buy SDK/Mobile Buy SDK.xcodeproj/xcshareddata/xcschemes/Buy.xcscheme index 22326c4..7049bc9 100644 --- a/Mobile Buy SDK/Mobile Buy SDK.xcodeproj/xcshareddata/xcschemes/Buy.xcscheme +++ b/Mobile Buy SDK/Mobile Buy SDK.xcodeproj/xcshareddata/xcschemes/Buy.xcscheme @@ -14,7 +14,7 @@ buildForAnalyzing = "YES"> <BuildableReference BuildableIdentifier = "primary" - BlueprintIdentifier = "BE9A64271B503C2F0033E558" + BlueprintIdentifier = "901930E11BC5B9BC00D1134E" BuildableName = "Buy.framework" BlueprintName = "Buy" ReferencedContainer = "container:Mobile Buy SDK.xcodeproj"> @@ -45,7 +45,7 @@ <MacroExpansion> <BuildableReference BuildableIdentifier = "primary" - BlueprintIdentifier = "BE9A64271B503C2F0033E558" + BlueprintIdentifier = "901930E11BC5B9BC00D1134E" BuildableName = "Buy.framework" BlueprintName = "Buy" ReferencedContainer = "container:Mobile Buy SDK.xcodeproj"> @@ -63,7 +63,7 @@ <MacroExpansion> <BuildableReference BuildableIdentifier = "primary" - BlueprintIdentifier = "BE9A64271B503C2F0033E558" + BlueprintIdentifier = "901930E11BC5B9BC00D1134E" BuildableName = "Buy.framework" BlueprintName = "Buy" ReferencedContainer = "container:Mobile Buy SDK.xcodeproj"> @@ -71,7 +71,7 @@ </MacroExpansion> </ProfileAction> <AnalyzeAction - buildConfiguration = "Release"> + buildConfiguration = "Debug"> </AnalyzeAction> <ArchiveAction buildConfiguration = "Release" diff --git a/Mobile Buy SDK/Mobile Buy SDK.xcodeproj/xcshareddata/xcschemes/Universal Framework.xcscheme b/Mobile Buy SDK/Mobile Buy SDK.xcodeproj/xcshareddata/xcschemes/Static Universal Framework.xcscheme similarity index 92% rename from Mobile Buy SDK/Mobile Buy SDK.xcodeproj/xcshareddata/xcschemes/Universal Framework.xcscheme rename to Mobile Buy SDK/Mobile Buy SDK.xcodeproj/xcshareddata/xcschemes/Static Universal Framework.xcscheme index 6b2e677..40fa690 100644 --- a/Mobile Buy SDK/Mobile Buy SDK.xcodeproj/xcshareddata/xcschemes/Universal Framework.xcscheme +++ b/Mobile Buy SDK/Mobile Buy SDK.xcodeproj/xcshareddata/xcschemes/Static Universal Framework.xcscheme @@ -15,8 +15,8 @@ <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "904FB61A1AE03DC500EA1758" - BuildableName = "Universal Framework" - BlueprintName = "Universal Framework" + BuildableName = "Static Universal Framework" + BlueprintName = "Static Universal Framework" ReferencedContainer = "container:Mobile Buy SDK.xcodeproj"> </BuildableReference> </BuildActionEntry> @@ -46,8 +46,8 @@ <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "904FB61A1AE03DC500EA1758" - BuildableName = "Universal Framework" - BlueprintName = "Universal Framework" + BuildableName = "Static Universal Framework" + BlueprintName = "Static Universal Framework" ReferencedContainer = "container:Mobile Buy SDK.xcodeproj"> </BuildableReference> </MacroExpansion> @@ -64,8 +64,8 @@ <BuildableReference BuildableIdentifier = "primary" BlueprintIdentifier = "904FB61A1AE03DC500EA1758" - BuildableName = "Universal Framework" - BlueprintName = "Universal Framework" + BuildableName = "Static Universal Framework" + BlueprintName = "Static Universal Framework" ReferencedContainer = "container:Mobile Buy SDK.xcodeproj"> </BuildableReference> </MacroExpansion> diff --git a/README.md b/README.md index c8554ff..b078f36 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,8 @@ See the [Sample Apps](/Mobile Buy SDK Sample Apps/) for an example of Dynamic Fr If you would like to not include the Mobile Buy SDK Project within your existing project, you can link directly to the `Buy.framework`. -1. Open the `Mobile Buy SDK.xcodeproj` and build the `Universal Framework` Target -2. Drag the `Buy.framework` that was just created from `Mobile Buy SDK Sample Apps` onto the `Linked Frameworks and Libraries` section for the target you want to add the framework to. Check Copy items if needed so the framework is copied to your project +1. Open the `Mobile Buy SDK.xcodeproj` and build the `Static Universal Framework` scheme +2. Drag the `Buy.framework` that was just created from `Mobile Buy SDK Sample Apps` into the `Linked Frameworks and Libraries` section for the target you want to add the framework to. Check Copy items if needed so the framework is copied to your project 3. In the `Build Settings` tab, add `-all_load` to `Other Linker Flags` #### CocoaPods @@ -98,17 +98,17 @@ The workspace includes the Mobile Buy SDK project. The Mobile Buy SDK includes a number of targets and schemes: -* **Buy**: This is the Mobile Buy SDK static framework. This build is based on the current build configuration. To build a universal framework that can run on a device and on the Simulator and to be included in your app, please refer to the `Universal Framework` target below +* **Buy**: This is the Mobile Buy SDK dynamic framework. Please refer to the installation section above -* **Buy Dynamic**: This is the Mobile Buy SDK dynamic framework. Please refer to the installation section above. +* **Buy Static** (target only): This is the Mobile Buy SDK static framework. This build is based on the current build configuration. To build a universal framework that can run on a device and on the Simulator and to be included in your app, please refer to the `Static Universal Framework` target below -* **Universal Framework**: This builds a static framework using `build_universal.sh` script in the `Universal Framework` target and copies the built framework in the `/Mobile Buy SDK Sample Apps` folder. This is a fat binary that includes arm and i386 slices. Build this target if you have made any changes to the framework that you want to test with the sample apps as the sample apps do not build the framework directly but embed the already built framework +* **Static Universal Framework**: This builds a **static** framework from the `Buy Static` target using the `build_universal.sh` script in the `Static Universal Framework` target and copies the built framework in the `/Mobile Buy SDK Sample Apps` folder. This is a fat binary that includes arm and i386 slices. Build this target if you have made any changes to the framework that you want to test with the sample apps as the sample apps do not build the framework directly but embed the already built framework * **Mobile Buy SDK Tests**: Tests for the Mobile Buy SDK framework. See instructions below * **Documentation**: This generates appledoc documentation for the framework -* **Playground**: This target is a basic app that depends directly on the `Buy` framework target and builds the framework every time using the `Playground` app's build configuration. You may use this app and target to play around with the SDK. Be sure not to check in any changes you may have made in files related to this app +* **Playground**: This is a basic app that depends directly on the `Buy` dynamic framework. You may use this app and target to play around with the SDK. Be sure not to check in any changes you may have made in files related to this app ### Sample Apps diff --git a/Scripts/build_universal.sh b/Scripts/build_universal.sh index f45f2e8..3e214a5 100755 --- a/Scripts/build_universal.sh +++ b/Scripts/build_universal.sh @@ -1,14 +1,15 @@ #!/bin/sh UNIVERSAL_OUTPUTFOLDER=${BUILD_DIR}/${CONFIGURATION}-universal +TARGET_NAME="Buy Static" FRAMEWORK_NAME="Buy" # make sure the output directory exists mkdir -p "${UNIVERSAL_OUTPUTFOLDER}" # Build Device and Simulator versions -xcodebuild -target "${FRAMEWORK_NAME}" ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -OBJROOT="${OBJROOT}" -sdk iphoneos BUILD_DIR="${BUILD_DIR}" SYMROOT="${SYMROOT}" BUILD_ROOT="${BUILD_ROOT}" clean build -xcodebuild -target "${FRAMEWORK_NAME}" ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -OBJROOT="${OBJROOT}" -sdk iphonesimulator BUILD_DIR="${BUILD_DIR}" SYMROOT="${SYMROOT}" BUILD_ROOT="${BUILD_ROOT}" clean build +xcodebuild -target "${TARGET_NAME}" ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -OBJROOT="${OBJROOT}" -sdk iphoneos BUILD_DIR="${BUILD_DIR}" SYMROOT="${SYMROOT}" BUILD_ROOT="${BUILD_ROOT}" clean build +xcodebuild -target "${TARGET_NAME}" ONLY_ACTIVE_ARCH=NO -configuration ${CONFIGURATION} -OBJROOT="${OBJROOT}" -sdk iphonesimulator BUILD_DIR="${BUILD_DIR}" SYMROOT="${SYMROOT}" BUILD_ROOT="${BUILD_ROOT}" clean build # Copy the framework structure (from iphoneos build) to the universal folder cp -R "${BUILD_DIR}/${CONFIGURATION}-iphoneos/${FRAMEWORK_NAME}.framework" "${UNIVERSAL_OUTPUTFOLDER}/" @@ -17,6 +18,6 @@ cp -R "${BUILD_DIR}/${CONFIGURATION}-iphoneos/${FRAMEWORK_NAME}.framework" "${UN lipo -create -output "${UNIVERSAL_OUTPUTFOLDER}/${FRAMEWORK_NAME}.framework/${FRAMEWORK_NAME}" "${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${FRAMEWORK_NAME}.framework/${FRAMEWORK_NAME}" "${BUILD_DIR}/${CONFIGURATION}-iphoneos/${FRAMEWORK_NAME}.framework/${FRAMEWORK_NAME}" # Copy the framework to the sample apps folder -rm -rf "${SRCROOT}/../Mobile Buy SDK Sample Apps/${FRAMEWORK_NAME}.framework" +rm -rf "${SRCROOT}/../Mobile Buy SDK Sample Apps/${TARGET_NAME}.framework" cp -r "${UNIVERSAL_OUTPUTFOLDER}/${FRAMEWORK_NAME}.framework" "${SRCROOT}/../Mobile Buy SDK Sample Apps"