From 759438ca708d6a25b882c75dfd45c14e4c2f8775 Mon Sep 17 00:00:00 2001 From: Matias Pequeno Date: Thu, 20 Jul 2023 19:26:04 +0200 Subject: [PATCH 1/6] Renamed iosAppSwift to RollbarDemo, moved into new Examples dir (#306) --- .../contents.xcworkspacedata | 4 - .../xcschemes/iosAppSwift.xcscheme | 78 ------- .../RollbarDemo.xcodeproj}/project.pbxproj | 193 ++++++++-------- .../AccentColor.colorset/Contents.json | 0 .../AppIcon.appiconset/Contents.json | 0 .../Rollbar-Logomark-Safety.png | Bin .../Assets.xcassets/Contents.json | 0 .../RollbarDemo}/ContentView.swift | 6 +- .../RollbarDemo/RollbarDemo}/Prelude.swift | 0 .../Preview Assets.xcassets/Contents.json | 0 .../RollbarDemo/RollbarDemo.entitlements | 7 +- .../RollbarDemo/RollbarDemoApp.swift | 2 +- .../RollbarCrashFormattingFilter.swift | 6 +- .../RollbarReportTests/Assets/crash.json | 210 +++++++++--------- .../RollbarReportTests/Assets/diagnosed.json | 32 +-- .../RollbarReportTests/Assets/report.crash | 20 +- .../RollbarReportTests.swift | 4 +- .../contents.xcworkspacedata | 10 +- 18 files changed, 244 insertions(+), 328 deletions(-) delete mode 100644 Demos/iosAppSwift/iosAppSwift.xcodeproj/project.xcworkspace/contents.xcworkspacedata delete mode 100644 Demos/iosAppSwift/iosAppSwift.xcodeproj/xcshareddata/xcschemes/iosAppSwift.xcscheme rename {Demos/iosAppSwift/iosAppSwift.xcodeproj => Examples/RollbarDemo/RollbarDemo.xcodeproj}/project.pbxproj (55%) rename {Demos/iosAppSwift/iosAppSwift => Examples/RollbarDemo/RollbarDemo}/Assets.xcassets/AccentColor.colorset/Contents.json (100%) rename {Demos/iosAppSwift/iosAppSwift => Examples/RollbarDemo/RollbarDemo}/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename {Demos/iosAppSwift/iosAppSwift => Examples/RollbarDemo/RollbarDemo}/Assets.xcassets/AppIcon.appiconset/Rollbar-Logomark-Safety.png (100%) rename {Demos/iosAppSwift/iosAppSwift => Examples/RollbarDemo/RollbarDemo}/Assets.xcassets/Contents.json (100%) rename {Demos/iosAppSwift/iosAppSwift => Examples/RollbarDemo/RollbarDemo}/ContentView.swift (99%) rename {Demos/iosAppSwift/iosAppSwift => Examples/RollbarDemo/RollbarDemo}/Prelude.swift (100%) rename {Demos/iosAppSwift/iosAppSwift => Examples/RollbarDemo/RollbarDemo}/Preview Content/Preview Assets.xcassets/Contents.json (100%) rename Demos/iosAppSwift/iosAppSwift/Info.plist => Examples/RollbarDemo/RollbarDemo/RollbarDemo.entitlements (53%) rename Demos/iosAppSwift/iosAppSwift/iosAppSwiftApp.swift => Examples/RollbarDemo/RollbarDemo/RollbarDemoApp.swift (99%) diff --git a/Demos/iosAppSwift/iosAppSwift.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Demos/iosAppSwift/iosAppSwift.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 94b2795e..00000000 --- a/Demos/iosAppSwift/iosAppSwift.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,4 +0,0 @@ - - - diff --git a/Demos/iosAppSwift/iosAppSwift.xcodeproj/xcshareddata/xcschemes/iosAppSwift.xcscheme b/Demos/iosAppSwift/iosAppSwift.xcodeproj/xcshareddata/xcschemes/iosAppSwift.xcscheme deleted file mode 100644 index f5d5ab2d..00000000 --- a/Demos/iosAppSwift/iosAppSwift.xcodeproj/xcshareddata/xcschemes/iosAppSwift.xcscheme +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Demos/iosAppSwift/iosAppSwift.xcodeproj/project.pbxproj b/Examples/RollbarDemo/RollbarDemo.xcodeproj/project.pbxproj similarity index 55% rename from Demos/iosAppSwift/iosAppSwift.xcodeproj/project.pbxproj rename to Examples/RollbarDemo/RollbarDemo.xcodeproj/project.pbxproj index 3b9a1925..c4eec9c7 100644 --- a/Demos/iosAppSwift/iosAppSwift.xcodeproj/project.pbxproj +++ b/Examples/RollbarDemo/RollbarDemo.xcodeproj/project.pbxproj @@ -7,75 +7,75 @@ objects = { /* Begin PBXBuildFile section */ - 3B24660A29C37CEA0078C74F /* Prelude.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B24660929C37CEA0078C74F /* Prelude.swift */; }; - 3BDB8240292D2DCE0093AC9D /* iosAppSwiftApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3BDB823F292D2DCE0093AC9D /* iosAppSwiftApp.swift */; }; - 3BDB8242292D2DCE0093AC9D /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3BDB8241292D2DCE0093AC9D /* ContentView.swift */; }; - 3BDB8244292D2DCF0093AC9D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3BDB8243292D2DCF0093AC9D /* Assets.xcassets */; }; - 3BDB8247292D2DCF0093AC9D /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3BDB8246292D2DCF0093AC9D /* Preview Assets.xcassets */; }; - 3BDB8253292D2E4B0093AC9D /* RollbarNotifier in Frameworks */ = {isa = PBXBuildFile; productRef = 3BDB8252292D2E4B0093AC9D /* RollbarNotifier */; }; + 3BAD89E12A699BD300713F26 /* RollbarDemoApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3BAD89E02A699BD300713F26 /* RollbarDemoApp.swift */; }; + 3BAD89E32A699BD300713F26 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3BAD89E22A699BD300713F26 /* ContentView.swift */; }; + 3BAD89E52A699BD400713F26 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3BAD89E42A699BD400713F26 /* Assets.xcassets */; }; + 3BAD89E92A699BD400713F26 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3BAD89E82A699BD400713F26 /* Preview Assets.xcassets */; }; + 3BAD89F02A699F9E00713F26 /* Prelude.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3BAD89EF2A699F9E00713F26 /* Prelude.swift */; }; + 3BAD89F32A69A00700713F26 /* RollbarNotifier in Frameworks */ = {isa = PBXBuildFile; productRef = 3BAD89F22A69A00700713F26 /* RollbarNotifier */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ - 3B24660929C37CEA0078C74F /* Prelude.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Prelude.swift; sourceTree = ""; }; - 3BD306A729C4E1BC0049F3D1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; - 3BDB823C292D2DCE0093AC9D /* Rollbar Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Rollbar Demo.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 3BDB823F292D2DCE0093AC9D /* iosAppSwiftApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iosAppSwiftApp.swift; sourceTree = ""; }; - 3BDB8241292D2DCE0093AC9D /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; - 3BDB8243292D2DCF0093AC9D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 3BDB8246292D2DCF0093AC9D /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 3BAD89DD2A699BD300713F26 /* RollbarDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RollbarDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 3BAD89E02A699BD300713F26 /* RollbarDemoApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RollbarDemoApp.swift; sourceTree = ""; }; + 3BAD89E22A699BD300713F26 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 3BAD89E42A699BD400713F26 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 3BAD89E62A699BD400713F26 /* RollbarDemo.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = RollbarDemo.entitlements; sourceTree = ""; }; + 3BAD89E82A699BD400713F26 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 3BAD89EF2A699F9E00713F26 /* Prelude.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Prelude.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ - 3BDB8239292D2DCE0093AC9D /* Frameworks */ = { + 3BAD89DA2A699BD300713F26 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 3BDB8253292D2E4B0093AC9D /* RollbarNotifier in Frameworks */, + 3BAD89F32A69A00700713F26 /* RollbarNotifier in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 3BDB8233292D2DCE0093AC9D = { + 3BAD89D42A699BD300713F26 = { isa = PBXGroup; children = ( - 3BDB823E292D2DCE0093AC9D /* iosAppSwift */, - 3BDB823D292D2DCE0093AC9D /* Products */, - 3BDB824D292D2E4B0093AC9D /* Frameworks */, + 3BAD89DF2A699BD300713F26 /* RollbarDemo */, + 3BAD89DE2A699BD300713F26 /* Products */, + 3BAD89F12A69A00700713F26 /* Frameworks */, ); sourceTree = ""; }; - 3BDB823D292D2DCE0093AC9D /* Products */ = { + 3BAD89DE2A699BD300713F26 /* Products */ = { isa = PBXGroup; children = ( - 3BDB823C292D2DCE0093AC9D /* Rollbar Demo.app */, + 3BAD89DD2A699BD300713F26 /* RollbarDemo.app */, ); name = Products; sourceTree = ""; }; - 3BDB823E292D2DCE0093AC9D /* iosAppSwift */ = { + 3BAD89DF2A699BD300713F26 /* RollbarDemo */ = { isa = PBXGroup; children = ( - 3BD306A729C4E1BC0049F3D1 /* Info.plist */, - 3BDB823F292D2DCE0093AC9D /* iosAppSwiftApp.swift */, - 3BDB8241292D2DCE0093AC9D /* ContentView.swift */, - 3BDB8243292D2DCF0093AC9D /* Assets.xcassets */, - 3BDB8245292D2DCF0093AC9D /* Preview Content */, - 3B24660929C37CEA0078C74F /* Prelude.swift */, + 3BAD89E62A699BD400713F26 /* RollbarDemo.entitlements */, + 3BAD89E02A699BD300713F26 /* RollbarDemoApp.swift */, + 3BAD89E22A699BD300713F26 /* ContentView.swift */, + 3BAD89EF2A699F9E00713F26 /* Prelude.swift */, + 3BAD89E42A699BD400713F26 /* Assets.xcassets */, + 3BAD89E72A699BD400713F26 /* Preview Content */, ); - path = iosAppSwift; + path = RollbarDemo; sourceTree = ""; }; - 3BDB8245292D2DCF0093AC9D /* Preview Content */ = { + 3BAD89E72A699BD400713F26 /* Preview Content */ = { isa = PBXGroup; children = ( - 3BDB8246292D2DCF0093AC9D /* Preview Assets.xcassets */, + 3BAD89E82A699BD400713F26 /* Preview Assets.xcassets */, ); path = "Preview Content"; sourceTree = ""; }; - 3BDB824D292D2E4B0093AC9D /* Frameworks */ = { + 3BAD89F12A69A00700713F26 /* Frameworks */ = { isa = PBXGroup; children = ( ); @@ -85,42 +85,42 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - 3BDB823B292D2DCE0093AC9D /* Rollbar Demo */ = { + 3BAD89DC2A699BD300713F26 /* RollbarDemo */ = { isa = PBXNativeTarget; - buildConfigurationList = 3BDB824A292D2DCF0093AC9D /* Build configuration list for PBXNativeTarget "Rollbar Demo" */; + buildConfigurationList = 3BAD89EC2A699BD400713F26 /* Build configuration list for PBXNativeTarget "RollbarDemo" */; buildPhases = ( - 3BDB8238292D2DCE0093AC9D /* Sources */, - 3BDB8239292D2DCE0093AC9D /* Frameworks */, - 3BDB823A292D2DCE0093AC9D /* Resources */, + 3BAD89D92A699BD300713F26 /* Sources */, + 3BAD89DA2A699BD300713F26 /* Frameworks */, + 3BAD89DB2A699BD300713F26 /* Resources */, ); buildRules = ( ); dependencies = ( ); - name = "Rollbar Demo"; + name = RollbarDemo; packageProductDependencies = ( - 3BDB8252292D2E4B0093AC9D /* RollbarNotifier */, + 3BAD89F22A69A00700713F26 /* RollbarNotifier */, ); - productName = iosAppSwift; - productReference = 3BDB823C292D2DCE0093AC9D /* Rollbar Demo.app */; + productName = RollbarDemo; + productReference = 3BAD89DD2A699BD300713F26 /* RollbarDemo.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ - 3BDB8234292D2DCE0093AC9D /* Project object */ = { + 3BAD89D52A699BD300713F26 /* Project object */ = { isa = PBXProject; attributes = { BuildIndependentTargetsInParallel = 1; - LastSwiftUpdateCheck = 1410; - LastUpgradeCheck = 1410; + LastSwiftUpdateCheck = 1430; + LastUpgradeCheck = 1430; TargetAttributes = { - 3BDB823B292D2DCE0093AC9D = { - CreatedOnToolsVersion = 14.1; + 3BAD89DC2A699BD300713F26 = { + CreatedOnToolsVersion = 14.3.1; }; }; }; - buildConfigurationList = 3BDB8237292D2DCE0093AC9D /* Build configuration list for PBXProject "iosAppSwift" */; + buildConfigurationList = 3BAD89D82A699BD300713F26 /* Build configuration list for PBXProject "RollbarDemo" */; compatibilityVersion = "Xcode 14.0"; developmentRegion = en; hasScannedForEncodings = 0; @@ -128,43 +128,43 @@ en, Base, ); - mainGroup = 3BDB8233292D2DCE0093AC9D; - productRefGroup = 3BDB823D292D2DCE0093AC9D /* Products */; + mainGroup = 3BAD89D42A699BD300713F26; + productRefGroup = 3BAD89DE2A699BD300713F26 /* Products */; projectDirPath = ""; projectRoot = ""; targets = ( - 3BDB823B292D2DCE0093AC9D /* Rollbar Demo */, + 3BAD89DC2A699BD300713F26 /* RollbarDemo */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ - 3BDB823A292D2DCE0093AC9D /* Resources */ = { + 3BAD89DB2A699BD300713F26 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 3BDB8247292D2DCF0093AC9D /* Preview Assets.xcassets in Resources */, - 3BDB8244292D2DCF0093AC9D /* Assets.xcassets in Resources */, + 3BAD89E92A699BD400713F26 /* Preview Assets.xcassets in Resources */, + 3BAD89E52A699BD400713F26 /* Assets.xcassets in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ - 3BDB8238292D2DCE0093AC9D /* Sources */ = { + 3BAD89D92A699BD300713F26 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 3B24660A29C37CEA0078C74F /* Prelude.swift in Sources */, - 3BDB8242292D2DCE0093AC9D /* ContentView.swift in Sources */, - 3BDB8240292D2DCE0093AC9D /* iosAppSwiftApp.swift in Sources */, + 3BAD89F02A699F9E00713F26 /* Prelude.swift in Sources */, + 3BAD89E32A699BD300713F26 /* ContentView.swift in Sources */, + 3BAD89E12A699BD300713F26 /* RollbarDemoApp.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin XCBuildConfiguration section */ - 3BDB8248292D2DCF0093AC9D /* Debug */ = { + 3BAD89EA2A699BD400713F26 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; @@ -214,17 +214,15 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 15.0; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; }; name = Debug; }; - 3BDB8249292D2DCF0093AC9D /* Release */ = { + 3BAD89EB2A699BD400713F26 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; @@ -268,76 +266,67 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 15.0; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; - SDKROOT = iphoneos; SWIFT_COMPILATION_MODE = wholemodule; SWIFT_OPTIMIZATION_LEVEL = "-O"; - VALIDATE_PRODUCT = YES; }; name = Release; }; - 3BDB824B292D2DCF0093AC9D /* Debug */ = { + 3BAD89ED2A699BD400713F26 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = RollbarDemo/RollbarDemo.entitlements; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 70; - DEVELOPMENT_ASSET_PATHS = "\"iosAppSwift/Preview Content\""; + DEVELOPMENT_ASSET_PATHS = "\"RollbarDemo/Preview Content\""; DEVELOPMENT_TEAM = 9P5JVC2F34; + ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iosAppSwift/Info.plist; - INFOPLIST_KEY_CFBundleDisplayName = "Rollbar Demo"; - INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools"; - INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; - INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; - INFOPLIST_KEY_UILaunchScreen_Generation = YES; - INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UIRequiresFullScreen = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown"; IPHONEOS_DEPLOYMENT_TARGET = 15.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); + LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"; MARKETING_VERSION = 1.2; - PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.apple.demo.swift; + PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.apple.demo; PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; }; - 3BDB824C292D2DCF0093AC9D /* Release */ = { + 3BAD89EE2A699BD400713F26 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = RollbarDemo/RollbarDemo.entitlements; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 70; - DEVELOPMENT_ASSET_PATHS = "\"iosAppSwift/Preview Content\""; + DEVELOPMENT_ASSET_PATHS = "\"RollbarDemo/Preview Content\""; DEVELOPMENT_TEAM = 9P5JVC2F34; + ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = iosAppSwift/Info.plist; - INFOPLIST_KEY_CFBundleDisplayName = "Rollbar Demo"; - INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools"; - INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; - INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; - INFOPLIST_KEY_UILaunchScreen_Generation = YES; - INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UIRequiresFullScreen = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown"; IPHONEOS_DEPLOYMENT_TARGET = 15.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); + LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"; MARKETING_VERSION = 1.2; - PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.apple.demo.swift; + PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.apple.demo; PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = YES; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -347,20 +336,20 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 3BDB8237292D2DCE0093AC9D /* Build configuration list for PBXProject "iosAppSwift" */ = { + 3BAD89D82A699BD300713F26 /* Build configuration list for PBXProject "RollbarDemo" */ = { isa = XCConfigurationList; buildConfigurations = ( - 3BDB8248292D2DCF0093AC9D /* Debug */, - 3BDB8249292D2DCF0093AC9D /* Release */, + 3BAD89EA2A699BD400713F26 /* Debug */, + 3BAD89EB2A699BD400713F26 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 3BDB824A292D2DCF0093AC9D /* Build configuration list for PBXNativeTarget "Rollbar Demo" */ = { + 3BAD89EC2A699BD400713F26 /* Build configuration list for PBXNativeTarget "RollbarDemo" */ = { isa = XCConfigurationList; buildConfigurations = ( - 3BDB824B292D2DCF0093AC9D /* Debug */, - 3BDB824C292D2DCF0093AC9D /* Release */, + 3BAD89ED2A699BD400713F26 /* Debug */, + 3BAD89EE2A699BD400713F26 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; @@ -368,11 +357,11 @@ /* End XCConfigurationList section */ /* Begin XCSwiftPackageProductDependency section */ - 3BDB8252292D2E4B0093AC9D /* RollbarNotifier */ = { + 3BAD89F22A69A00700713F26 /* RollbarNotifier */ = { isa = XCSwiftPackageProductDependency; productName = RollbarNotifier; }; /* End XCSwiftPackageProductDependency section */ }; - rootObject = 3BDB8234292D2DCE0093AC9D /* Project object */; + rootObject = 3BAD89D52A699BD300713F26 /* Project object */; } diff --git a/Demos/iosAppSwift/iosAppSwift/Assets.xcassets/AccentColor.colorset/Contents.json b/Examples/RollbarDemo/RollbarDemo/Assets.xcassets/AccentColor.colorset/Contents.json similarity index 100% rename from Demos/iosAppSwift/iosAppSwift/Assets.xcassets/AccentColor.colorset/Contents.json rename to Examples/RollbarDemo/RollbarDemo/Assets.xcassets/AccentColor.colorset/Contents.json diff --git a/Demos/iosAppSwift/iosAppSwift/Assets.xcassets/AppIcon.appiconset/Contents.json b/Examples/RollbarDemo/RollbarDemo/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from Demos/iosAppSwift/iosAppSwift/Assets.xcassets/AppIcon.appiconset/Contents.json rename to Examples/RollbarDemo/RollbarDemo/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/Demos/iosAppSwift/iosAppSwift/Assets.xcassets/AppIcon.appiconset/Rollbar-Logomark-Safety.png b/Examples/RollbarDemo/RollbarDemo/Assets.xcassets/AppIcon.appiconset/Rollbar-Logomark-Safety.png similarity index 100% rename from Demos/iosAppSwift/iosAppSwift/Assets.xcassets/AppIcon.appiconset/Rollbar-Logomark-Safety.png rename to Examples/RollbarDemo/RollbarDemo/Assets.xcassets/AppIcon.appiconset/Rollbar-Logomark-Safety.png diff --git a/Demos/iosAppSwift/iosAppSwift/Assets.xcassets/Contents.json b/Examples/RollbarDemo/RollbarDemo/Assets.xcassets/Contents.json similarity index 100% rename from Demos/iosAppSwift/iosAppSwift/Assets.xcassets/Contents.json rename to Examples/RollbarDemo/RollbarDemo/Assets.xcassets/Contents.json diff --git a/Demos/iosAppSwift/iosAppSwift/ContentView.swift b/Examples/RollbarDemo/RollbarDemo/ContentView.swift similarity index 99% rename from Demos/iosAppSwift/iosAppSwift/ContentView.swift rename to Examples/RollbarDemo/RollbarDemo/ContentView.swift index c5ced092..39983678 100644 --- a/Demos/iosAppSwift/iosAppSwift/ContentView.swift +++ b/Examples/RollbarDemo/RollbarDemo/ContentView.swift @@ -4,9 +4,9 @@ import RollbarNotifier enum ExampleError: Error { case - invalidResult, - invalidInput, - someOtherError + invalidResult, + invalidInput, + someOtherError } struct ContentView: View { diff --git a/Demos/iosAppSwift/iosAppSwift/Prelude.swift b/Examples/RollbarDemo/RollbarDemo/Prelude.swift similarity index 100% rename from Demos/iosAppSwift/iosAppSwift/Prelude.swift rename to Examples/RollbarDemo/RollbarDemo/Prelude.swift diff --git a/Demos/iosAppSwift/iosAppSwift/Preview Content/Preview Assets.xcassets/Contents.json b/Examples/RollbarDemo/RollbarDemo/Preview Content/Preview Assets.xcassets/Contents.json similarity index 100% rename from Demos/iosAppSwift/iosAppSwift/Preview Content/Preview Assets.xcassets/Contents.json rename to Examples/RollbarDemo/RollbarDemo/Preview Content/Preview Assets.xcassets/Contents.json diff --git a/Demos/iosAppSwift/iosAppSwift/Info.plist b/Examples/RollbarDemo/RollbarDemo/RollbarDemo.entitlements similarity index 53% rename from Demos/iosAppSwift/iosAppSwift/Info.plist rename to Examples/RollbarDemo/RollbarDemo/RollbarDemo.entitlements index 0c67376e..f2ef3ae0 100644 --- a/Demos/iosAppSwift/iosAppSwift/Info.plist +++ b/Examples/RollbarDemo/RollbarDemo/RollbarDemo.entitlements @@ -1,5 +1,10 @@ - + + com.apple.security.app-sandbox + + com.apple.security.files.user-selected.read-only + + diff --git a/Demos/iosAppSwift/iosAppSwift/iosAppSwiftApp.swift b/Examples/RollbarDemo/RollbarDemo/RollbarDemoApp.swift similarity index 99% rename from Demos/iosAppSwift/iosAppSwift/iosAppSwiftApp.swift rename to Examples/RollbarDemo/RollbarDemo/RollbarDemoApp.swift index aad4f6cd..959d3c96 100644 --- a/Demos/iosAppSwift/iosAppSwift/iosAppSwiftApp.swift +++ b/Examples/RollbarDemo/RollbarDemo/RollbarDemoApp.swift @@ -2,7 +2,7 @@ import SwiftUI import RollbarNotifier @main -struct iosAppSwiftApp: App { +struct RollbarDemoApp: App { @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate var body: some Scene { diff --git a/RollbarNotifier/Sources/RollbarReport/Formatter/RollbarCrashFormattingFilter.swift b/RollbarNotifier/Sources/RollbarReport/Formatter/RollbarCrashFormattingFilter.swift index 84717354..84b3ee77 100644 --- a/RollbarNotifier/Sources/RollbarReport/Formatter/RollbarCrashFormattingFilter.swift +++ b/RollbarNotifier/Sources/RollbarReport/Formatter/RollbarCrashFormattingFilter.swift @@ -96,8 +96,8 @@ fileprivate extension RollbarCrashFormattingFilter { /// Incident Identifier: 74C597A4-8AFD-4611-8C25-1547E4FD8E8C /// CrashReporter Key: 33f6cae3f5d192f79bd3a18c8bac24d6ef24b08b /// Hardware Model: iPhone12,5 - /// Process: iosAppSwift [11466] - /// Path: /private/var/containers/Bundle/Application/88931A2D-AF88-4252-97C6-677C0915BFB0/iosAppSwift.app/iosAppSwift + /// Process: RollbarDemo [11466] + /// Path: /private/var/containers/Bundle/Application/88931A2D-AF88-4252-97C6-677C0915BFB0/RollbarDemo.app/RollbarDemo /// Identifier: com.matux.test.rollbarAppDemo /// Version: 4 (1.0) /// Code Type: ARM-64 @@ -312,7 +312,7 @@ fileprivate extension RollbarCrashFormattingFilter { /// /// ``` /// Binary Images: - /// 0x0104fa8000 - 0x01050c3fff +iosAppSwift arm64 /Users/matux/Library/Developer/CoreSimulator/Devices/D0A3BA18-8B19-43A4-9B7D-FFB0577EE2B9/data/Containers/Bundle/Application/0CC38EA0-F306-4C14-8157-14057B20075F/iosAppSwift.app/iosAppSwift + /// 0x0104fa8000 - 0x01050c3fff +RollbarDemo arm64 /Users/matux/Library/Developer/CoreSimulator/Devices/D0A3BA18-8B19-43A4-9B7D-FFB0577EE2B9/data/Containers/Bundle/Application/0CC38EA0-F306-4C14-8157-14057B20075F/RollbarDemo.app/RollbarDemo /// 0x0105330000 - 0x0105333fff libswiftWebKit.dylib arm64 <73bebae1764e32cbb78c34c92c0bd8d6> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/libswiftWebKit.dylib /// 0x0105348000 - 0x010534bfff UIKit arm64 <8b15488095fe390fae821a3a3a640227> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/UIKit.framework/UIKit /// ... diff --git a/RollbarNotifier/Tests/RollbarReportTests/Assets/crash.json b/RollbarNotifier/Tests/RollbarReportTests/Assets/crash.json index 09a9cc70..26e11cd6 100644 --- a/RollbarNotifier/Tests/RollbarReportTests/Assets/crash.json +++ b/RollbarNotifier/Tests/RollbarReportTests/Assets/crash.json @@ -1,57 +1,57 @@ { "report" : { - "process_name" : "iosAppSwift", - "id" : "9FD0795D-894E-4767-B951-B5B357638874", - "timestamp" : "2023-02-09T00:19:20.221023Z", - "type" : "standard", - "version" : "3.3.0" + "process_name": "RollbarDemo", + "id": "9FD0795D-894E-4767-B951-B5B357638874", + "timestamp": "2023-02-09T00:19:20.221023Z", + "type": "standard", + "version": "3.3.0" }, "debug" : {}, "system" : { - "binary_cpu_type" : 16777228, - "boot_time" : "2023-02-06T15:36:28Z", - "app_uuid" : "2C35CB4B-21F1-33CC-AF98-770BB819B333", - "CFBundleName" : "iosAppSwift", - "process_name" : "iosAppSwift", - "system_version" : "16.3", - "device_app_hash" : "9923f06919cff01c6e94721941c918d81787bfc6", - "storage" : 255865737216, - "memory" : { - "free" : 122667008, - "size" : 3932274688, - "usable" : 2607988736 - }, - "application_stats" : { - "background_time_since_last_crash" : 0.031285, - "active_time_since_launch" : 2.0554999999999999, - "sessions_since_last_crash" : 3, - "launches_since_last_crash" : 2, - "active_time_since_last_crash" : 2.0554999999999999, - "sessions_since_launch" : 2, - "application_active" : true, - "application_in_foreground" : true, - "background_time_since_launch" : 0.031285 - }, - "CFBundleVersion" : "6", - "cpu_type" : 16777228, - "CFBundleShortVersionString" : "1.0", - "binary_cpu_subtype" : 0, - "system_name" : "iOS", - "app_start_time" : "2023-02-09T00:19:17Z", - "CFBundleExecutable" : "iosAppSwift", - "process_id" : 6230, - "cpu_subtype" : 2, - "CFBundleIdentifier" : "com.matux.test.fmt.rollbarAppDemo", - "cpu_arch" : "arm64e", - "jailbroken" : false, - "os_version" : "20D47", - "model" : "D431AP", - "time_zone" : "GMT-3", - "CFBundleExecutablePath" : "/private/var/containers/Bundle/Application/225DF661-B05F-4BDD-AA4D-E5FF67750B90/iosAppSwift.app/iosAppSwift", - "build_type" : "debug", - "machine" : "iPhone12,5", - "kernel_version" : "Darwin Kernel Version 22.3.0: Wed Jan 4 21:25:00 PST 2023; root:xnu-8792.82.2~1/RELEASE_ARM64_T8030", - "parent_process_id" : 1 + "binary_cpu_type": 16777228, + "boot_time": "2023-02-06T15:36:28Z", + "app_uuid": "2C35CB4B-21F1-33CC-AF98-770BB819B333", + "CFBundleName": "RollbarDemo", + "process_name": "RollbarDemo", + "system_version": "16.3", + "device_app_hash": "9923f06919cff01c6e94721941c918d81787bfc6", + "storage": 255865737216, + "memory": { + "free": 122667008, + "size": 3932274688, + "usable": 2607988736 + }, + "application_stats": { + "background_time_since_last_crash": 0.031285, + "active_time_since_launch": 2.0554999999999999, + "sessions_since_last_crash": 3, + "launches_since_last_crash": 2, + "active_time_since_last_crash": 2.0554999999999999, + "sessions_since_launch": 2, + "application_active": true, + "application_in_foreground": true, + "background_time_since_launch": 0.031285 + }, + "CFBundleVersion": "6", + "cpu_type": 16777228, + "CFBundleShortVersionString": "1.0", + "binary_cpu_subtype": 0, + "system_name": "iOS", + "app_start_time": "2023-02-09T00:19:17Z", + "CFBundleExecutable": "RollbarDemo", + "process_id": 6230, + "cpu_subtype": 2, + "CFBundleIdentifier": "com.matux.test.fmt.rollbarAppDemo", + "cpu_arch": "arm64e", + "jailbroken": false, + "os_version": "20D47", + "model": "D431AP", + "time_zone": "GMT-3", + "CFBundleExecutablePath": "/private/var/containers/Bundle/Application/225DF661-B05F-4BDD-AA4D-E5FF67750B90/RollbarDemo.app/RollbarDemo", + "build_type": "debug", + "machine": "iPhone12,5", + "kernel_version": "Darwin Kernel Version 22.3.0: Wed Jan 4 21:25:00 PST 2023; root:xnu-8792.82.2~1/RELEASE_ARM64_T8030", + "parent_process_id": 1 }, "crash" : { "threads" : [ @@ -140,18 +140,18 @@ "object_addr" : 6635675648 }, { - "symbol_name" : "Example.forceUnwrapNil()", - "symbol_addr" : 4332180812, - "instruction_addr" : 4332180960, - "object_name" : "iosAppSwift", - "object_addr" : 4332142592 + "symbol_name": "Example.forceUnwrapNil()", + "symbol_addr": 4332180812, + "instruction_addr": 4332180960, + "object_name": "RollbarDemo", + "object_addr": 4332142592 }, { - "symbol_name" : "$s11iosAppSwift11ContentViewV4bodyQrvg0C2UI05TupleE0VyAE0E0PAEE7paddingyQrAE4EdgeO3SetV_12CoreGraphics7CGFloatVSgtFQOyAE4TextV_Qo__AE6VStackVyAGyAiEEAJyQrAN_ARtFQOyAC6button_6actionQrSS_yyctFQOy_Qo__Qo__AE5GroupVyAGyAZ_AZA_tGGA1_yAGyAZ_A_tGGA3_A5_A1_yAGyAZ_A2ZtGGtGGtGyXEfU_A8_yXEfU_A2_yXEfU_yycAA7ExampleVcfu_yycfu0_", - "symbol_addr" : 4332180772, - "instruction_addr" : 4332180800, - "object_name" : "iosAppSwift", - "object_addr" : 4332142592 + "symbol_name": "$s11RollbarDemo11ContentViewV4bodyQrvg0C2UI05TupleE0VyAE0E0PAEE7paddingyQrAE4EdgeO3SetV_12CoreGraphics7CGFloatVSgtFQOyAE4TextV_Qo__AE6VStackVyAGyAiEEAJyQrAN_ARtFQOyAC6button_6actionQrSS_yyctFQOy_Qo__Qo__AE5GroupVyAGyAZ_AZA_tGGA1_yAGyAZ_A_tGGA3_A5_A1_yAGyAZ_A2ZtGGtGGtGyXEfU_A8_yXEfU_A2_yXEfU_yycAA7ExampleVcfu_yycfu0_", + "symbol_addr": 4332180772, + "instruction_addr": 4332180800, + "object_name": "RollbarDemo", + "object_addr": 4332142592 }, { "symbol_name" : "", @@ -378,18 +378,18 @@ "object_addr" : 6799196160 }, { - "symbol_name" : "static iosAppSwiftApp.$main()", - "symbol_addr" : 4332224852, - "instruction_addr" : 4332224892, - "object_name" : "iosAppSwift", - "object_addr" : 4332142592 + "symbol_name": "static RollbarDemoApp.$main()", + "symbol_addr": 4332224852, + "instruction_addr": 4332224892, + "object_name": "RollbarDemo", + "object_addr": 4332142592 }, { - "symbol_name" : "main", - "symbol_addr" : 4332228560, - "instruction_addr" : 4332228572, - "object_name" : "iosAppSwift", - "object_addr" : 4332142592 + "symbol_name": "main", + "symbol_addr": 4332228560, + "instruction_addr": 4332228572, + "object_name": "RollbarDemo", + "object_addr": 4332142592 }, { "instruction_addr" : 7251855712 @@ -1007,11 +1007,11 @@ "object_addr" : 6862749696 }, { - "symbol_name" : "monitorCachedData", - "symbol_addr" : 4332605768, - "instruction_addr" : 4332605896, - "object_name" : "iosAppSwift", - "object_addr" : 4332142592 + "symbol_name": "monitorCachedData", + "symbol_addr": 4332605768, + "instruction_addr": 4332605896, + "object_name": "RollbarDemo", + "object_addr": 4332142592 }, { "symbol_name" : "_pthread_start", @@ -1098,11 +1098,11 @@ "object_addr" : 7773667328 }, { - "symbol_name" : "handleExceptions", - "symbol_addr" : 4332657748, - "instruction_addr" : 4332657932, - "object_name" : "iosAppSwift", - "object_addr" : 4332142592 + "symbol_name": "handleExceptions", + "symbol_addr": 4332657748, + "instruction_addr": 4332657932, + "object_name": "RollbarDemo", + "object_addr": 4332142592 }, { "symbol_name" : "_pthread_start", @@ -1232,11 +1232,11 @@ "object_addr" : 6641557504 }, { - "symbol_name" : "-[RollbarThread run]", - "symbol_addr" : 4332407980, - "instruction_addr" : 4332408296, - "object_name" : "iosAppSwift", - "object_addr" : 4332142592 + "symbol_name": "-[RollbarThread run]", + "symbol_addr": 4332407980, + "instruction_addr": 4332408296, + "object_name": "RollbarDemo", + "object_addr": 4332142592 }, { "symbol_name" : "", @@ -1439,16 +1439,16 @@ }, "binary_images" : [ { - "major_version" : 0, - "revision_version" : 0, - "cpu_subtype" : 0, - "uuid" : "2C35CB4B-21F1-33CC-AF98-770BB819B333", - "image_vmaddr" : 4294967296, - "image_addr" : 4332142592, - "image_size" : 1146880, - "minor_version" : 0, - "name" : "/private/var/containers/Bundle/Application/225DF661-B05F-4BDD-AA4D-E5FF67750B90/iosAppSwift.app/iosAppSwift", - "cpu_type" : 16777228 + "major_version": 0, + "revision_version": 0, + "cpu_subtype": 0, + "uuid": "2C35CB4B-21F1-33CC-AF98-770BB819B333", + "image_vmaddr": 4294967296, + "image_addr": 4332142592, + "image_size": 1146880, + "minor_version": 0, + "name": "/private/var/containers/Bundle/Application/225DF661-B05F-4BDD-AA4D-E5FF67750B90/RollbarDemo.app/RollbarDemo", + "cpu_type": 16777228 }, { "major_version" : 1300, @@ -2027,17 +2027,17 @@ "cpu_type" : 16777228 }, { - "major_version" : 5, - "revision_version" : 1, - "cpu_subtype" : -2147483646, - "crash_info_message" : "iosAppSwift/ContentView.swift:117: Fatal error: Unexpectedly found nil while unwrapping an Optional value\n", - "uuid" : "56C020FC-0369-3775-B947-148F388A65B3", - "image_vmaddr" : 6456107008, - "image_addr" : 6635675648, - "image_size" : 5672960, - "minor_version" : 7, - "name" : "/usr/lib/swift/libswiftCore.dylib", - "cpu_type" : 16777228 + "major_version": 5, + "revision_version": 1, + "cpu_subtype": -2147483646, + "crash_info_message": "RollbarDemo/ContentView.swift:117: Fatal error: Unexpectedly found nil while unwrapping an Optional value\n", + "uuid": "56C020FC-0369-3775-B947-148F388A65B3", + "image_vmaddr": 6456107008, + "image_addr": 6635675648, + "image_size": 5672960, + "minor_version": 7, + "name": "/usr/lib/swift/libswiftCore.dylib", + "cpu_type": 16777228 }, { "major_version" : 120, diff --git a/RollbarNotifier/Tests/RollbarReportTests/Assets/diagnosed.json b/RollbarNotifier/Tests/RollbarReportTests/Assets/diagnosed.json index 981adff5..5ca7f74f 100644 --- a/RollbarNotifier/Tests/RollbarReportTests/Assets/diagnosed.json +++ b/RollbarNotifier/Tests/RollbarReportTests/Assets/diagnosed.json @@ -9,7 +9,7 @@ "image_addr" : 4369596416, "image_size" : 1179648, "minor_version" : 0, - "name" : "\/Users\/matux\/Library\/Developer\/CoreSimulator\/Devices\/D0A3BA18-8B19-43A4-9B7D-FFB0577EE2B9\/data\/Containers\/Bundle\/Application\/F60AB504-F150-4C6F-B99D-C46D605BF6EC\/iosAppSwift.app\/iosAppSwift", + "name" : "\/Users\/matux\/Library\/Developer\/CoreSimulator\/Devices\/D0A3BA18-8B19-43A4-9B7D-FFB0577EE2B9\/data\/Containers\/Bundle\/Application\/F60AB504-F150-4C6F-B99D-C46D605BF6EC\/RollbarDemo.app\/RollbarDemo", "cpu_type" : 16777228 }, { @@ -6439,14 +6439,14 @@ "symbol_name" : "Example.outOfBounds()", "symbol_addr" : 4369626440, "instruction_addr" : 4369626512, - "object_name" : "iosAppSwift", + "object_name" : "RollbarDemo", "object_addr" : 4369596416 }, { - "symbol_name" : "$s11iosAppSwift11ContentViewV4bodyQrvg0C2UI05TupleE0VyAE0E0PAEE7paddingyQrAE4EdgeO3SetV_12CoreGraphics7CGFloatVSgtFQOyAE4TextV_Qo__AE6VStackVyAGyAiEEAJyQrAN_ARtFQOyAC6button_6actionQrSS_yyctFQOy_Qo__Qo__AE5GroupVyAGyAZ_AZA_tGGA1_yAGyAZ_A_tGGA3_A5_A1_yAGyAZ_A2ZtGGtGGtGyXEfU_A8_yXEfU_A2_yXEfU1_yycAA7ExampleVcfu_yycfu0_", + "symbol_name" : "$s11RollbarDemo11ContentViewV4bodyQrvg0C2UI05TupleE0VyAE0E0PAEE7paddingyQrAE4EdgeO3SetV_12CoreGraphics7CGFloatVSgtFQOyAE4TextV_Qo__AE6VStackVyAGyAiEEAJyQrAN_ARtFQOyAC6button_6actionQrSS_yyctFQOy_Qo__Qo__AE5GroupVyAGyAZ_AZA_tGGA1_yAGyAZ_A_tGGA3_A5_A1_yAGyAZ_A2ZtGGtGGtGyXEfU_A8_yXEfU_A2_yXEfU1_yycAA7ExampleVcfu_yycfu0_", "symbol_addr" : 4369626400, "instruction_addr" : 4369626428, - "object_name" : "iosAppSwift", + "object_name" : "RollbarDemo", "object_addr" : 4369596416 }, { @@ -6681,17 +6681,17 @@ "object_addr" : 4451155968 }, { - "symbol_name" : "static iosAppSwiftApp.$main()", + "symbol_name" : "static RollbarDemoApp.$main()", "symbol_addr" : 4369667600, "instruction_addr" : 4369667640, - "object_name" : "iosAppSwift", + "object_name" : "RollbarDemo", "object_addr" : 4369596416 }, { "symbol_name" : "main", "symbol_addr" : 4369671288, "instruction_addr" : 4369671300, - "object_name" : "iosAppSwift", + "object_name" : "RollbarDemo", "object_addr" : 4369596416 }, { @@ -7257,7 +7257,7 @@ "symbol_name" : "monitorCachedData", "symbol_addr" : 4370089736, "instruction_addr" : 4370089864, - "object_name" : "iosAppSwift", + "object_name" : "RollbarDemo", "object_addr" : 4369596416 }, { @@ -7348,7 +7348,7 @@ "symbol_name" : "handleExceptions", "symbol_addr" : 4370141440, "instruction_addr" : 4370141624, - "object_name" : "iosAppSwift", + "object_name" : "RollbarDemo", "object_addr" : 4369596416 }, { @@ -7482,7 +7482,7 @@ "symbol_name" : "-[RollbarThread run]", "symbol_addr" : 4369829768, "instruction_addr" : 4369830084, - "object_name" : "iosAppSwift", + "object_name" : "RollbarDemo", "object_addr" : 4369596416 }, { @@ -7707,8 +7707,8 @@ "binary_cpu_type" : 16777228, "boot_time" : "2023-02-14T18:24:19Z", "app_uuid" : "41BE1A68-C692-3F3C-BA61-5A387688F2D8", - "CFBundleName" : "iosAppSwift", - "process_name" : "iosAppSwift", + "CFBundleName" : "RollbarDemo", + "process_name" : "RollbarDemo", "system_version" : "16.2", "device_app_hash" : "389fef42fa10edcc97bc004d5c8579e5c0d5e1e5", "storage" : 994662584320, @@ -7734,7 +7734,7 @@ "binary_cpu_subtype" : 0, "system_name" : "iOS", "app_start_time" : "2023-02-16T02:09:38Z", - "CFBundleExecutable" : "iosAppSwift", + "CFBundleExecutable" : "RollbarDemo", "process_id" : 80655, "cpu_subtype" : 2, "CFBundleIdentifier" : "com.matux.test.rollbarAppDemo", @@ -7743,7 +7743,7 @@ "os_version" : "22D68", "model" : "simulator", "time_zone" : "GMT-3", - "CFBundleExecutablePath" : "\/Users\/matux\/Library\/Developer\/CoreSimulator\/Devices\/D0A3BA18-8B19-43A4-9B7D-FFB0577EE2B9\/data\/Containers\/Bundle\/Application\/F60AB504-F150-4C6F-B99D-C46D605BF6EC\/iosAppSwift.app\/iosAppSwift", + "CFBundleExecutablePath" : "\/Users\/matux\/Library\/Developer\/CoreSimulator\/Devices\/D0A3BA18-8B19-43A4-9B7D-FFB0577EE2B9\/data\/Containers\/Bundle\/Application\/F60AB504-F150-4C6F-B99D-C46D605BF6EC\/RollbarDemo.app\/RollbarDemo", "build_type" : "simulator", "machine" : "iPhone15,2", "kernel_version" : "Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2\/RELEASE_ARM64_T6000", @@ -7753,7 +7753,7 @@ }, "report" : { - "process_name" : "iosAppSwift", + "process_name" : "RollbarDemo", "id" : "22FE63C2-E1EB-498E-A1B5-21C063D417A0", "timestamp" : "2023-02-16T02:09:40.723603Z", "type" : "standard", @@ -7762,4 +7762,4 @@ "user" : { } -} \ No newline at end of file +} diff --git a/RollbarNotifier/Tests/RollbarReportTests/Assets/report.crash b/RollbarNotifier/Tests/RollbarReportTests/Assets/report.crash index 732298bd..9dbd597f 100644 --- a/RollbarNotifier/Tests/RollbarReportTests/Assets/report.crash +++ b/RollbarNotifier/Tests/RollbarReportTests/Assets/report.crash @@ -1,8 +1,8 @@ Incident Identifier: 22FE63C2-E1EB-498E-A1B5-21C063D417A0 CrashReporter Key: 389fef42fa10edcc97bc004d5c8579e5c0d5e1e5 Hardware Model: iPhone15,2 -Process: iosAppSwift [80655] -Path: /Users/matux/Library/Developer/CoreSimulator/Devices/D0A3BA18-8B19-43A4-9B7D-FFB0577EE2B9/data/Containers/Bundle/Application/F60AB504-F150-4C6F-B99D-C46D605BF6EC/iosAppSwift.app/iosAppSwift +Process: RollbarDemo [80655] +Path: /Users/matux/Library/Developer/CoreSimulator/Devices/D0A3BA18-8B19-43A4-9B7D-FFB0577EE2B9/data/Containers/Bundle/Application/F60AB504-F150-4C6F-B99D-C46D605BF6EC/RollbarDemo.app/RollbarDemo Identifier: com.matux.test.rollbarAppDemo Version: 4 (1.0) Code Type: ARM-64 @@ -57,8 +57,8 @@ Thread 0 Crashed: 3 libswiftCore.dylib 0x000000018bd55564 _assertionFailure(_:_:file:line:flags:) + 228 4 libswiftCore.dylib 0x000000018bd36eb8 _ArrayBuffer._checkInoutAndNativeTypeCheckedBounds(_:wasNativeTypeChecked:) + 276 5 libswiftCore.dylib 0x000000018bd3abf0 Array.subscript.getter + 84 -6 iosAppSwift 0x0000000104733590 0x010472c000 + 30096 -7 iosAppSwift 0x000000010473353c 0x010472c000 + 30012 +6 RollbarDemo 0x0000000104733590 0x010472c000 + 30096 +7 RollbarDemo 0x000000010473353c 0x010472c000 + 30012 8 SwiftUI 0x0000000109acfa18 __swift_memcpy3_1 + 8096 9 SwiftUI 0x0000000109ad02a0 __swift_memcpy3_1 + 10280 10 SwiftUI 0x0000000109ad0210 __swift_memcpy3_1 + 10136 @@ -92,8 +92,8 @@ Thread 0 Crashed: 38 SwiftUI 0x000000010a4490d4 OUTLINED_FUNCTION_51 + 496 39 SwiftUI 0x000000010a448f7c OUTLINED_FUNCTION_51 + 152 40 SwiftUI 0x0000000109baeb60 OUTLINED_FUNCTION_10 + 88 -41 iosAppSwift 0x000000010473d638 0x010472c000 + 71224 -42 iosAppSwift 0x000000010473e484 0x010472c000 + 74884 +41 RollbarDemo 0x000000010473d638 0x010472c000 + 71224 +42 RollbarDemo 0x000000010473e484 0x010472c000 + 74884 43 ? 0x0000000104a79fa0 ? + 4373061536 44 ? 0x0000000104b5de50 ? + 4373995088 @@ -140,7 +140,7 @@ Thread 8: 0 libsystem_kernel.dylib 0x00000001b05455e0 __semwait_signal + 8 1 libsystem_c.dylib 0x0000000180127050 nanosleep + 216 2 libsystem_c.dylib 0x0000000180126e4c sleep + 48 -3 iosAppSwift 0x00000001047a4788 0x010472c000 + 493448 +3 RollbarDemo 0x00000001047a4788 0x010472c000 + 493448 4 libsystem_pthread.dylib 0x00000001b059e4e4 _pthread_start + 116 Thread 9 name: KSCrash Exception Handler (Secondary) @@ -149,7 +149,7 @@ Thread 9: 1 libsystem_kernel.dylib 0x00000001b0553154 mach_msg2_internal + 76 2 libsystem_kernel.dylib 0x00000001b054a4b8 mach_msg_overwrite + 536 3 libsystem_kernel.dylib 0x00000001b054261c mach_msg + 20 -4 iosAppSwift 0x00000001047b11b8 0x010472c000 + 545208 +4 RollbarDemo 0x00000001047b11b8 0x010472c000 + 545208 5 libsystem_pthread.dylib 0x00000001b059e4e4 _pthread_start + 116 Thread 10 name: KSCrash Exception Handler (Primary) @@ -166,7 +166,7 @@ Thread 11: 5 CoreFoundation 0x000000018036d03c __CFRunLoopRun + 1152 6 CoreFoundation 0x000000018036c7a4 CFRunLoopRunSpecific + 584 7 Foundation 0x0000000180bcf02c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 208 -8 iosAppSwift 0x00000001047650c4 0x010472c000 + 233668 +8 RollbarDemo 0x00000001047650c4 0x010472c000 + 233668 9 Foundation 0x0000000180bf4a10 __NSThread__start__ + 704 10 libsystem_pthread.dylib 0x00000001b059e4e4 _pthread_start + 116 @@ -184,7 +184,7 @@ Thread 12: 9 libsystem_pthread.dylib 0x00000001b059e4e4 _pthread_start + 116 Binary Images: -0x010472c000 - 0x010484bfff +iosAppSwift arm64 <41be1a68c6923f3cba615a387688f2d8> /Users/matux/Library/Developer/CoreSimulator/Devices/D0A3BA18-8B19-43A4-9B7D-FFB0577EE2B9/data/Containers/Bundle/Application/F60AB504-F150-4C6F-B99D-C46D605BF6EC/iosAppSwift.app/iosAppSwift +0x010472c000 - 0x010484bfff +RollbarDemo arm64 <41be1a68c6923f3cba615a387688f2d8> /Users/matux/Library/Developer/CoreSimulator/Devices/D0A3BA18-8B19-43A4-9B7D-FFB0577EE2B9/data/Containers/Bundle/Application/F60AB504-F150-4C6F-B99D-C46D605BF6EC/RollbarDemo.app/RollbarDemo 0x0104b48000 - 0x0104b4bfff UIKit arm64 <8b15488095fe390fae821a3a3a640227> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/UIKit.framework/UIKit 0x0104c48000 - 0x0104d2bfff PDFKit arm64 <7a8f430696353a84ab0ba3b31fe3c51f> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/PDFKit.framework/PDFKit 0x0104e30000 - 0x0104e5bfff AppSupportUI arm64 <7d72100a8001395ca5f6066d645b3f27> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AppSupportUI.framework/AppSupportUI diff --git a/RollbarNotifier/Tests/RollbarReportTests/RollbarReportTests.swift b/RollbarNotifier/Tests/RollbarReportTests/RollbarReportTests.swift index 5bb45049..37098bc9 100644 --- a/RollbarNotifier/Tests/RollbarReportTests/RollbarReportTests.swift +++ b/RollbarNotifier/Tests/RollbarReportTests/RollbarReportTests.swift @@ -24,10 +24,10 @@ final class RollbarReportTests: XCTestCase { return XCTFail() } - XCTAssertEqual(report.crash.diagnosis, "Fatal error: Unexpectedly found nil while unwrapping an Optional value (iosAppSwift/ContentView.swift:117)") + XCTAssertEqual(report.crash.diagnosis, "Fatal error: Unexpectedly found nil while unwrapping an Optional value (RollbarDemo/ContentView.swift:117)") XCTAssertEqual(report.crash.diagnostics.count, 1) XCTAssertEqual(report.crash.diagnostics[0].source, "libswiftCore.dylib") - XCTAssertEqual(report.crash.diagnostics[0].diagnosis, "Fatal error: Unexpectedly found nil while unwrapping an Optional value (iosAppSwift/ContentView.swift:117)") + XCTAssertEqual(report.crash.diagnostics[0].diagnosis, "Fatal error: Unexpectedly found nil while unwrapping an Optional value (RollbarDemo/ContentView.swift:117)") } } diff --git a/RollbarSDK.xcworkspace/contents.xcworkspacedata b/RollbarSDK.xcworkspace/contents.xcworkspacedata index 0100dfa0..8c41bf14 100644 --- a/RollbarSDK.xcworkspace/contents.xcworkspacedata +++ b/RollbarSDK.xcworkspace/contents.xcworkspacedata @@ -47,6 +47,13 @@ location = "group:upload_dsym.py"> + + + + @@ -71,9 +78,6 @@ - - From 0520afbed5b71e7df5580527bc3ee574440b2854 Mon Sep 17 00:00:00 2001 From: Matias Pequeno Date: Thu, 20 Jul 2023 21:25:02 +0200 Subject: [PATCH 2/6] Renamed iosAppObjC to RollbarObjCDemo, moved to new Examples (#307) --- .../project.pbxproj | 82 ++++++++---------- .../contents.xcworkspacedata | 0 .../xcschemes/RollbarObjCDemo.xcscheme | 20 ++--- .../RollbarObjCDemo}/AppDelegate.h | 0 .../RollbarObjCDemo}/AppDelegate.m | 0 .../AccentColor.colorset/Contents.json | 0 .../AppIcon.appiconset/Contents.json | 0 .../Rollbar-Logomark-Safety.png | Bin .../Assets.xcassets/Contents.json | 0 .../Base.lproj/LaunchScreen.storyboard | 0 .../Base.lproj/Main.storyboard | 0 .../RollbarObjCDemo}/Info.plist | 0 .../RollbarObjCDemo.entitlements | 5 +- .../RollbarObjCDemo}/SceneDelegate.h | 0 .../RollbarObjCDemo}/SceneDelegate.m | 0 .../RollbarObjCDemo}/ViewController.h | 0 .../RollbarObjCDemo}/ViewController.m | 0 .../RollbarObjCDemo/RollbarObjCDemo}/main.m | 0 .../contents.xcworkspacedata | 14 +-- 19 files changed, 51 insertions(+), 70 deletions(-) rename {Demos/iosAppObjC/iosAppObjC.xcodeproj => Examples/RollbarObjCDemo/RollbarObjCDemo.xcodeproj}/project.pbxproj (84%) rename {Demos/iosAppObjC/iosAppObjC.xcodeproj => Examples/RollbarObjCDemo/RollbarObjCDemo.xcodeproj}/project.xcworkspace/contents.xcworkspacedata (100%) rename Demos/iosAppObjC/iosAppObjC.xcodeproj/xcshareddata/xcschemes/iosAppObjC.xcscheme => Examples/RollbarObjCDemo/RollbarObjCDemo.xcodeproj/xcshareddata/xcschemes/RollbarObjCDemo.xcscheme (81%) rename {Demos/iosAppObjC/iosAppObjC => Examples/RollbarObjCDemo/RollbarObjCDemo}/AppDelegate.h (100%) rename {Demos/iosAppObjC/iosAppObjC => Examples/RollbarObjCDemo/RollbarObjCDemo}/AppDelegate.m (100%) rename {Demos/iosAppObjC/iosAppObjC => Examples/RollbarObjCDemo/RollbarObjCDemo}/Assets.xcassets/AccentColor.colorset/Contents.json (100%) rename {Demos/iosAppObjC/iosAppObjC => Examples/RollbarObjCDemo/RollbarObjCDemo}/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename {Demos/iosAppObjC/iosAppObjC => Examples/RollbarObjCDemo/RollbarObjCDemo}/Assets.xcassets/AppIcon.appiconset/Rollbar-Logomark-Safety.png (100%) rename {Demos/iosAppObjC/iosAppObjC => Examples/RollbarObjCDemo/RollbarObjCDemo}/Assets.xcassets/Contents.json (100%) rename {Demos/iosAppObjC/iosAppObjC => Examples/RollbarObjCDemo/RollbarObjCDemo}/Base.lproj/LaunchScreen.storyboard (100%) rename {Demos/iosAppObjC/iosAppObjC => Examples/RollbarObjCDemo/RollbarObjCDemo}/Base.lproj/Main.storyboard (100%) rename {Demos/iosAppObjC/iosAppObjC => Examples/RollbarObjCDemo/RollbarObjCDemo}/Info.plist (100%) rename Demos/iosAppObjC/iosAppObjC/iosAppObjC.entitlements => Examples/RollbarObjCDemo/RollbarObjCDemo/RollbarObjCDemo.entitlements (67%) rename {Demos/iosAppObjC/iosAppObjC => Examples/RollbarObjCDemo/RollbarObjCDemo}/SceneDelegate.h (100%) rename {Demos/iosAppObjC/iosAppObjC => Examples/RollbarObjCDemo/RollbarObjCDemo}/SceneDelegate.m (100%) rename {Demos/iosAppObjC/iosAppObjC => Examples/RollbarObjCDemo/RollbarObjCDemo}/ViewController.h (100%) rename {Demos/iosAppObjC/iosAppObjC => Examples/RollbarObjCDemo/RollbarObjCDemo}/ViewController.m (100%) rename {Demos/iosAppObjC/iosAppObjC => Examples/RollbarObjCDemo/RollbarObjCDemo}/main.m (100%) diff --git a/Demos/iosAppObjC/iosAppObjC.xcodeproj/project.pbxproj b/Examples/RollbarObjCDemo/RollbarObjCDemo.xcodeproj/project.pbxproj similarity index 84% rename from Demos/iosAppObjC/iosAppObjC.xcodeproj/project.pbxproj rename to Examples/RollbarObjCDemo/RollbarObjCDemo.xcodeproj/project.pbxproj index 43b734dc..e356c10e 100644 --- a/Demos/iosAppObjC/iosAppObjC.xcodeproj/project.pbxproj +++ b/Examples/RollbarObjCDemo/RollbarObjCDemo.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 52; + objectVersion = 53; objects = { /* Begin PBXBuildFile section */ @@ -14,16 +14,15 @@ 55684F7B2553B4C700F82F34 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 55684F7A2553B4C700F82F34 /* Assets.xcassets */; }; 55684F7E2553B4C700F82F34 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 55684F7C2553B4C700F82F34 /* LaunchScreen.storyboard */; }; 55684F812553B4C700F82F34 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 55684F802553B4C700F82F34 /* main.m */; }; - 55684F8D2553B7E100F82F34 /* RollbarDeploys in Frameworks */ = {isa = PBXBuildFile; productRef = 55684F8C2553B7E100F82F34 /* RollbarDeploys */; }; 55684F912553B7EE00F82F34 /* RollbarNotifier in Frameworks */ = {isa = PBXBuildFile; productRef = 55684F902553B7EE00F82F34 /* RollbarNotifier */; }; - 55684F9D2553BD1C00F82F34 /* NetworkExtension.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 55684F9C2553BD1C00F82F34 /* NetworkExtension.framework */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ + 3B1DED342A6846A0003936E7 /* RollbarObjCDemo.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = RollbarObjCDemo.entitlements; sourceTree = ""; }; 3BDB8258292D67900093AC9D /* SceneDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SceneDelegate.m; sourceTree = ""; }; 3BDB8259292D67900093AC9D /* SceneDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SceneDelegate.h; sourceTree = ""; }; 3BDB825B292E34990093AC9D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; - 55684F6B2553B4C400F82F34 /* Rollbar ObjC Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Rollbar ObjC Demo.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 55684F6B2553B4C400F82F34 /* RollbarObjCDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RollbarObjCDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 55684F6E2553B4C400F82F34 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 55684F6F2553B4C400F82F34 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 55684F742553B4C400F82F34 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; @@ -32,7 +31,6 @@ 55684F7A2553B4C700F82F34 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 55684F7D2553B4C700F82F34 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 55684F802553B4C700F82F34 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 55684F9B2553BD1B00F82F34 /* iosAppObjC.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = iosAppObjC.entitlements; sourceTree = ""; }; 55684F9C2553BD1C00F82F34 /* NetworkExtension.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = NetworkExtension.framework; path = System/Library/Frameworks/NetworkExtension.framework; sourceTree = SDKROOT; }; /* End PBXFileReference section */ @@ -42,8 +40,6 @@ buildActionMask = 2147483647; files = ( 55684F912553B7EE00F82F34 /* RollbarNotifier in Frameworks */, - 55684F9D2553BD1C00F82F34 /* NetworkExtension.framework in Frameworks */, - 55684F8D2553B7E100F82F34 /* RollbarDeploys in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -53,7 +49,7 @@ 55684F622553B4C400F82F34 = { isa = PBXGroup; children = ( - 55684F6D2553B4C400F82F34 /* iosAppObjC */, + 55684F6D2553B4C400F82F34 /* RollbarObjCDemo */, 55684F6C2553B4C400F82F34 /* Products */, 55684F8B2553B7E100F82F34 /* Frameworks */, ); @@ -62,28 +58,28 @@ 55684F6C2553B4C400F82F34 /* Products */ = { isa = PBXGroup; children = ( - 55684F6B2553B4C400F82F34 /* Rollbar ObjC Demo.app */, + 55684F6B2553B4C400F82F34 /* RollbarObjCDemo.app */, ); name = Products; sourceTree = ""; }; - 55684F6D2553B4C400F82F34 /* iosAppObjC */ = { + 55684F6D2553B4C400F82F34 /* RollbarObjCDemo */ = { isa = PBXGroup; children = ( - 3BDB825B292E34990093AC9D /* Info.plist */, - 55684F9B2553BD1B00F82F34 /* iosAppObjC.entitlements */, 55684F6E2553B4C400F82F34 /* AppDelegate.h */, 55684F6F2553B4C400F82F34 /* AppDelegate.m */, + 55684F802553B4C700F82F34 /* main.m */, 3BDB8259292D67900093AC9D /* SceneDelegate.h */, 3BDB8258292D67900093AC9D /* SceneDelegate.m */, 55684F742553B4C400F82F34 /* ViewController.h */, 55684F752553B4C400F82F34 /* ViewController.m */, + 55684F7C2553B4C700F82F34 /* LaunchScreen.storyboard */, 55684F772553B4C400F82F34 /* Main.storyboard */, + 3B1DED342A6846A0003936E7 /* RollbarObjCDemo.entitlements */, 55684F7A2553B4C700F82F34 /* Assets.xcassets */, - 55684F7C2553B4C700F82F34 /* LaunchScreen.storyboard */, - 55684F802553B4C700F82F34 /* main.m */, + 3BDB825B292E34990093AC9D /* Info.plist */, ); - path = iosAppObjC; + path = RollbarObjCDemo; sourceTree = ""; }; 55684F8B2553B7E100F82F34 /* Frameworks */ = { @@ -97,9 +93,9 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - 55684F6A2553B4C400F82F34 /* Rollbar ObjC Demo */ = { + 55684F6A2553B4C400F82F34 /* RollbarObjCDemo */ = { isa = PBXNativeTarget; - buildConfigurationList = 55684F842553B4C700F82F34 /* Build configuration list for PBXNativeTarget "Rollbar ObjC Demo" */; + buildConfigurationList = 55684F842553B4C700F82F34 /* Build configuration list for PBXNativeTarget "RollbarObjCDemo" */; buildPhases = ( 55684F672553B4C400F82F34 /* Sources */, 55684F682553B4C400F82F34 /* Frameworks */, @@ -109,13 +105,12 @@ ); dependencies = ( ); - name = "Rollbar ObjC Demo"; + name = RollbarObjCDemo; packageProductDependencies = ( - 55684F8C2553B7E100F82F34 /* RollbarDeploys */, 55684F902553B7EE00F82F34 /* RollbarNotifier */, ); productName = iosAppObjC; - productReference = 55684F6B2553B4C400F82F34 /* Rollbar ObjC Demo.app */; + productReference = 55684F6B2553B4C400F82F34 /* RollbarObjCDemo.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ @@ -124,14 +119,15 @@ 55684F632553B4C400F82F34 /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1210; + BuildIndependentTargetsInParallel = YES; + LastUpgradeCheck = 1430; TargetAttributes = { 55684F6A2553B4C400F82F34 = { CreatedOnToolsVersion = 12.1; }; }; }; - buildConfigurationList = 55684F662553B4C400F82F34 /* Build configuration list for PBXProject "iosAppObjC" */; + buildConfigurationList = 55684F662553B4C400F82F34 /* Build configuration list for PBXProject "RollbarObjCDemo" */; compatibilityVersion = "Xcode 9.3"; developmentRegion = en; hasScannedForEncodings = 0; @@ -144,7 +140,7 @@ projectDirPath = ""; projectRoot = ""; targets = ( - 55684F6A2553B4C400F82F34 /* Rollbar ObjC Demo */, + 55684F6A2553B4C400F82F34 /* RollbarObjCDemo */, ); }; /* End PBXProject section */ @@ -252,7 +248,7 @@ MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; - PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.iosAppObjC; + PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.apple.demo.objc; SDKROOT = iphoneos; }; name = Debug; @@ -306,7 +302,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 15.0; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.iosAppObjC; + PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.apple.demo.objc; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES; }; @@ -317,25 +313,25 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iosAppObjC/iosAppObjC.entitlements; + CODE_SIGN_ENTITLEMENTS = RollbarObjCDemo/RollbarObjCDemo.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 4; - DEVELOPMENT_TEAM = 6B5NER795L; - INFOPLIST_FILE = iosAppObjC/Info.plist; + CURRENT_PROJECT_VERSION = 10; + DEVELOPMENT_TEAM = 9P5JVC2F34; + INFOPLIST_FILE = RollbarObjCDemo/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = "Rollbar ObjC Demo"; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; INFOPLIST_KEY_UIRequiredDeviceCapabilities = armv7; - INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UIRequiresFullScreen = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown"; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0; + MARKETING_VERSION = 1.1; PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.apple.demo.objc; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -348,25 +344,25 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_ENTITLEMENTS = iosAppObjC/iosAppObjC.entitlements; + CODE_SIGN_ENTITLEMENTS = RollbarObjCDemo/RollbarObjCDemo.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 4; - DEVELOPMENT_TEAM = 6B5NER795L; - INFOPLIST_FILE = iosAppObjC/Info.plist; + CURRENT_PROJECT_VERSION = 10; + DEVELOPMENT_TEAM = 9P5JVC2F34; + INFOPLIST_FILE = RollbarObjCDemo/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = "Rollbar ObjC Demo"; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools"; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; INFOPLIST_KEY_UIMainStoryboardFile = Main; INFOPLIST_KEY_UIRequiredDeviceCapabilities = armv7; - INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UIRequiresFullScreen = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown"; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0; + MARKETING_VERSION = 1.1; PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.apple.demo.objc; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -377,7 +373,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 55684F662553B4C400F82F34 /* Build configuration list for PBXProject "iosAppObjC" */ = { + 55684F662553B4C400F82F34 /* Build configuration list for PBXProject "RollbarObjCDemo" */ = { isa = XCConfigurationList; buildConfigurations = ( 55684F822553B4C700F82F34 /* Debug */, @@ -386,7 +382,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 55684F842553B4C700F82F34 /* Build configuration list for PBXNativeTarget "Rollbar ObjC Demo" */ = { + 55684F842553B4C700F82F34 /* Build configuration list for PBXNativeTarget "RollbarObjCDemo" */ = { isa = XCConfigurationList; buildConfigurations = ( 55684F852553B4C700F82F34 /* Debug */, @@ -398,10 +394,6 @@ /* End XCConfigurationList section */ /* Begin XCSwiftPackageProductDependency section */ - 55684F8C2553B7E100F82F34 /* RollbarDeploys */ = { - isa = XCSwiftPackageProductDependency; - productName = RollbarDeploys; - }; 55684F902553B7EE00F82F34 /* RollbarNotifier */ = { isa = XCSwiftPackageProductDependency; productName = RollbarNotifier; diff --git a/Demos/iosAppObjC/iosAppObjC.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Examples/RollbarObjCDemo/RollbarObjCDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from Demos/iosAppObjC/iosAppObjC.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to Examples/RollbarObjCDemo/RollbarObjCDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/Demos/iosAppObjC/iosAppObjC.xcodeproj/xcshareddata/xcschemes/iosAppObjC.xcscheme b/Examples/RollbarObjCDemo/RollbarObjCDemo.xcodeproj/xcshareddata/xcschemes/RollbarObjCDemo.xcscheme similarity index 81% rename from Demos/iosAppObjC/iosAppObjC.xcodeproj/xcshareddata/xcschemes/iosAppObjC.xcscheme rename to Examples/RollbarObjCDemo/RollbarObjCDemo.xcodeproj/xcshareddata/xcschemes/RollbarObjCDemo.xcscheme index dec068dc..149fd432 100644 --- a/Demos/iosAppObjC/iosAppObjC.xcodeproj/xcshareddata/xcschemes/iosAppObjC.xcscheme +++ b/Examples/RollbarObjCDemo/RollbarObjCDemo.xcodeproj/xcshareddata/xcschemes/RollbarObjCDemo.xcscheme @@ -1,6 +1,6 @@ + BuildableName = "RollbarObjCDemo.app" + BlueprintName = "RollbarObjCDemo" + ReferencedContainer = "container:RollbarObjCDemo.xcodeproj"> @@ -45,9 +45,9 @@ + BuildableName = "RollbarObjCDemo.app" + BlueprintName = "RollbarObjCDemo" + ReferencedContainer = "container:RollbarObjCDemo.xcodeproj"> @@ -62,9 +62,9 @@ + BuildableName = "RollbarObjCDemo.app" + BlueprintName = "RollbarObjCDemo" + ReferencedContainer = "container:RollbarObjCDemo.xcodeproj"> diff --git a/Demos/iosAppObjC/iosAppObjC/AppDelegate.h b/Examples/RollbarObjCDemo/RollbarObjCDemo/AppDelegate.h similarity index 100% rename from Demos/iosAppObjC/iosAppObjC/AppDelegate.h rename to Examples/RollbarObjCDemo/RollbarObjCDemo/AppDelegate.h diff --git a/Demos/iosAppObjC/iosAppObjC/AppDelegate.m b/Examples/RollbarObjCDemo/RollbarObjCDemo/AppDelegate.m similarity index 100% rename from Demos/iosAppObjC/iosAppObjC/AppDelegate.m rename to Examples/RollbarObjCDemo/RollbarObjCDemo/AppDelegate.m diff --git a/Demos/iosAppObjC/iosAppObjC/Assets.xcassets/AccentColor.colorset/Contents.json b/Examples/RollbarObjCDemo/RollbarObjCDemo/Assets.xcassets/AccentColor.colorset/Contents.json similarity index 100% rename from Demos/iosAppObjC/iosAppObjC/Assets.xcassets/AccentColor.colorset/Contents.json rename to Examples/RollbarObjCDemo/RollbarObjCDemo/Assets.xcassets/AccentColor.colorset/Contents.json diff --git a/Demos/iosAppObjC/iosAppObjC/Assets.xcassets/AppIcon.appiconset/Contents.json b/Examples/RollbarObjCDemo/RollbarObjCDemo/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from Demos/iosAppObjC/iosAppObjC/Assets.xcassets/AppIcon.appiconset/Contents.json rename to Examples/RollbarObjCDemo/RollbarObjCDemo/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/Demos/iosAppObjC/iosAppObjC/Assets.xcassets/AppIcon.appiconset/Rollbar-Logomark-Safety.png b/Examples/RollbarObjCDemo/RollbarObjCDemo/Assets.xcassets/AppIcon.appiconset/Rollbar-Logomark-Safety.png similarity index 100% rename from Demos/iosAppObjC/iosAppObjC/Assets.xcassets/AppIcon.appiconset/Rollbar-Logomark-Safety.png rename to Examples/RollbarObjCDemo/RollbarObjCDemo/Assets.xcassets/AppIcon.appiconset/Rollbar-Logomark-Safety.png diff --git a/Demos/iosAppObjC/iosAppObjC/Assets.xcassets/Contents.json b/Examples/RollbarObjCDemo/RollbarObjCDemo/Assets.xcassets/Contents.json similarity index 100% rename from Demos/iosAppObjC/iosAppObjC/Assets.xcassets/Contents.json rename to Examples/RollbarObjCDemo/RollbarObjCDemo/Assets.xcassets/Contents.json diff --git a/Demos/iosAppObjC/iosAppObjC/Base.lproj/LaunchScreen.storyboard b/Examples/RollbarObjCDemo/RollbarObjCDemo/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from Demos/iosAppObjC/iosAppObjC/Base.lproj/LaunchScreen.storyboard rename to Examples/RollbarObjCDemo/RollbarObjCDemo/Base.lproj/LaunchScreen.storyboard diff --git a/Demos/iosAppObjC/iosAppObjC/Base.lproj/Main.storyboard b/Examples/RollbarObjCDemo/RollbarObjCDemo/Base.lproj/Main.storyboard similarity index 100% rename from Demos/iosAppObjC/iosAppObjC/Base.lproj/Main.storyboard rename to Examples/RollbarObjCDemo/RollbarObjCDemo/Base.lproj/Main.storyboard diff --git a/Demos/iosAppObjC/iosAppObjC/Info.plist b/Examples/RollbarObjCDemo/RollbarObjCDemo/Info.plist similarity index 100% rename from Demos/iosAppObjC/iosAppObjC/Info.plist rename to Examples/RollbarObjCDemo/RollbarObjCDemo/Info.plist diff --git a/Demos/iosAppObjC/iosAppObjC/iosAppObjC.entitlements b/Examples/RollbarObjCDemo/RollbarObjCDemo/RollbarObjCDemo.entitlements similarity index 67% rename from Demos/iosAppObjC/iosAppObjC/iosAppObjC.entitlements rename to Examples/RollbarObjCDemo/RollbarObjCDemo/RollbarObjCDemo.entitlements index 729dd6a1..0c67376e 100644 --- a/Demos/iosAppObjC/iosAppObjC/iosAppObjC.entitlements +++ b/Examples/RollbarObjCDemo/RollbarObjCDemo/RollbarObjCDemo.entitlements @@ -1,8 +1,5 @@ - - com.apple.developer.networking.networkextension - - + diff --git a/Demos/iosAppObjC/iosAppObjC/SceneDelegate.h b/Examples/RollbarObjCDemo/RollbarObjCDemo/SceneDelegate.h similarity index 100% rename from Demos/iosAppObjC/iosAppObjC/SceneDelegate.h rename to Examples/RollbarObjCDemo/RollbarObjCDemo/SceneDelegate.h diff --git a/Demos/iosAppObjC/iosAppObjC/SceneDelegate.m b/Examples/RollbarObjCDemo/RollbarObjCDemo/SceneDelegate.m similarity index 100% rename from Demos/iosAppObjC/iosAppObjC/SceneDelegate.m rename to Examples/RollbarObjCDemo/RollbarObjCDemo/SceneDelegate.m diff --git a/Demos/iosAppObjC/iosAppObjC/ViewController.h b/Examples/RollbarObjCDemo/RollbarObjCDemo/ViewController.h similarity index 100% rename from Demos/iosAppObjC/iosAppObjC/ViewController.h rename to Examples/RollbarObjCDemo/RollbarObjCDemo/ViewController.h diff --git a/Demos/iosAppObjC/iosAppObjC/ViewController.m b/Examples/RollbarObjCDemo/RollbarObjCDemo/ViewController.m similarity index 100% rename from Demos/iosAppObjC/iosAppObjC/ViewController.m rename to Examples/RollbarObjCDemo/RollbarObjCDemo/ViewController.m diff --git a/Demos/iosAppObjC/iosAppObjC/main.m b/Examples/RollbarObjCDemo/RollbarObjCDemo/main.m similarity index 100% rename from Demos/iosAppObjC/iosAppObjC/main.m rename to Examples/RollbarObjCDemo/RollbarObjCDemo/main.m diff --git a/RollbarSDK.xcworkspace/contents.xcworkspacedata b/RollbarSDK.xcworkspace/contents.xcworkspacedata index 8c41bf14..3a82b6cf 100644 --- a/RollbarSDK.xcworkspace/contents.xcworkspacedata +++ b/RollbarSDK.xcworkspace/contents.xcworkspacedata @@ -53,6 +53,9 @@ + + @@ -72,15 +75,4 @@ - - - - - - From b68011dade1547d9bee626803646744a0b7f0e8f Mon Sep 17 00:00:00 2001 From: Matias Pequeno Date: Thu, 20 Jul 2023 23:40:04 +0200 Subject: [PATCH 3/6] Example integrating Rollbar to an App via SPM (#308) --- .../SPMApp/SPMApp.xcodeproj/project.pbxproj | 371 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/swiftpm/Package.resolved | 32 ++ .../AccentColor.colorset/Contents.json | 11 + .../AppIcon.appiconset/Contents.json | 13 + .../SPMApp/Assets.xcassets/Contents.json | 6 + .../SPMApp/SPMApp/ContentView.swift | 23 ++ .../Preview Assets.xcassets/Contents.json | 6 + .../Integration/SPMApp/SPMApp/SPMApp.swift | 18 + 9 files changed, 487 insertions(+) create mode 100644 Examples/Integration/SPMApp/SPMApp.xcodeproj/project.pbxproj create mode 100644 Examples/Integration/SPMApp/SPMApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Examples/Integration/SPMApp/SPMApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved create mode 100644 Examples/Integration/SPMApp/SPMApp/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 Examples/Integration/SPMApp/SPMApp/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 Examples/Integration/SPMApp/SPMApp/Assets.xcassets/Contents.json create mode 100644 Examples/Integration/SPMApp/SPMApp/ContentView.swift create mode 100644 Examples/Integration/SPMApp/SPMApp/Preview Content/Preview Assets.xcassets/Contents.json create mode 100644 Examples/Integration/SPMApp/SPMApp/SPMApp.swift diff --git a/Examples/Integration/SPMApp/SPMApp.xcodeproj/project.pbxproj b/Examples/Integration/SPMApp/SPMApp.xcodeproj/project.pbxproj new file mode 100644 index 00000000..af53b76a --- /dev/null +++ b/Examples/Integration/SPMApp/SPMApp.xcodeproj/project.pbxproj @@ -0,0 +1,371 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 3B18792C2A69C9CD00265B15 /* SPMApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B18792B2A69C9CD00265B15 /* SPMApp.swift */; }; + 3B18792E2A69C9CD00265B15 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B18792D2A69C9CD00265B15 /* ContentView.swift */; }; + 3B1879302A69C9CD00265B15 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3B18792F2A69C9CD00265B15 /* Assets.xcassets */; }; + 3B1879332A69C9CD00265B15 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3B1879322A69C9CD00265B15 /* Preview Assets.xcassets */; }; + 3B6CB15B2A69CBEA00FDE6D8 /* RollbarNotifier in Frameworks */ = {isa = PBXBuildFile; productRef = 3B6CB15A2A69CBEA00FDE6D8 /* RollbarNotifier */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 3B1879282A69C9CD00265B15 /* SPMApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SPMApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 3B18792B2A69C9CD00265B15 /* SPMApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SPMApp.swift; sourceTree = ""; }; + 3B18792D2A69C9CD00265B15 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 3B18792F2A69C9CD00265B15 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 3B1879322A69C9CD00265B15 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 3B1879252A69C9CD00265B15 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 3B6CB15B2A69CBEA00FDE6D8 /* RollbarNotifier in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 3B18791F2A69C9CD00265B15 = { + isa = PBXGroup; + children = ( + 3B18792A2A69C9CD00265B15 /* SPMApp */, + 3B1879292A69C9CD00265B15 /* Products */, + ); + sourceTree = ""; + }; + 3B1879292A69C9CD00265B15 /* Products */ = { + isa = PBXGroup; + children = ( + 3B1879282A69C9CD00265B15 /* SPMApp.app */, + ); + name = Products; + sourceTree = ""; + }; + 3B18792A2A69C9CD00265B15 /* SPMApp */ = { + isa = PBXGroup; + children = ( + 3B18792B2A69C9CD00265B15 /* SPMApp.swift */, + 3B18792D2A69C9CD00265B15 /* ContentView.swift */, + 3B18792F2A69C9CD00265B15 /* Assets.xcassets */, + 3B1879312A69C9CD00265B15 /* Preview Content */, + ); + path = SPMApp; + sourceTree = ""; + }; + 3B1879312A69C9CD00265B15 /* Preview Content */ = { + isa = PBXGroup; + children = ( + 3B1879322A69C9CD00265B15 /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 3B1879272A69C9CD00265B15 /* SPMApp */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3B1879362A69C9CD00265B15 /* Build configuration list for PBXNativeTarget "SPMApp" */; + buildPhases = ( + 3B1879242A69C9CD00265B15 /* Sources */, + 3B1879252A69C9CD00265B15 /* Frameworks */, + 3B1879262A69C9CD00265B15 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SPMApp; + packageProductDependencies = ( + 3B6CB15A2A69CBEA00FDE6D8 /* RollbarNotifier */, + ); + productName = SPMApp; + productReference = 3B1879282A69C9CD00265B15 /* SPMApp.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 3B1879202A69C9CD00265B15 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1430; + LastUpgradeCheck = 1430; + TargetAttributes = { + 3B1879272A69C9CD00265B15 = { + CreatedOnToolsVersion = 14.3.1; + }; + }; + }; + buildConfigurationList = 3B1879232A69C9CD00265B15 /* Build configuration list for PBXProject "SPMApp" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 3B18791F2A69C9CD00265B15; + packageReferences = ( + 3B6CB1592A69CBEA00FDE6D8 /* XCRemoteSwiftPackageReference "rollbar-apple" */, + ); + productRefGroup = 3B1879292A69C9CD00265B15 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 3B1879272A69C9CD00265B15 /* SPMApp */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 3B1879262A69C9CD00265B15 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3B1879332A69C9CD00265B15 /* Preview Assets.xcassets in Resources */, + 3B1879302A69C9CD00265B15 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 3B1879242A69C9CD00265B15 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3B18792E2A69C9CD00265B15 /* ContentView.swift in Sources */, + 3B18792C2A69C9CD00265B15 /* SPMApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 3B1879342A69C9CD00265B15 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.4; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 3B1879352A69C9CD00265B15 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.4; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 3B1879372A69C9CD00265B15 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"SPMApp/Preview Content\""; + DEVELOPMENT_TEAM = 9P5JVC2F34; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.apple.example.spm.SPMApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 3B1879382A69C9CD00265B15 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"SPMApp/Preview Content\""; + DEVELOPMENT_TEAM = 9P5JVC2F34; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.apple.example.spm.SPMApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 3B1879232A69C9CD00265B15 /* Build configuration list for PBXProject "SPMApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3B1879342A69C9CD00265B15 /* Debug */, + 3B1879352A69C9CD00265B15 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3B1879362A69C9CD00265B15 /* Build configuration list for PBXNativeTarget "SPMApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3B1879372A69C9CD00265B15 /* Debug */, + 3B1879382A69C9CD00265B15 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCRemoteSwiftPackageReference section */ + 3B6CB1592A69CBEA00FDE6D8 /* XCRemoteSwiftPackageReference "rollbar-apple" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "git@github.com:rollbar/rollbar-apple.git"; + requirement = { + branch = integration_examples; + kind = branch; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + 3B6CB15A2A69CBEA00FDE6D8 /* RollbarNotifier */ = { + isa = XCSwiftPackageProductDependency; + package = 3B6CB1592A69CBEA00FDE6D8 /* XCRemoteSwiftPackageReference "rollbar-apple" */; + productName = RollbarNotifier; + }; +/* End XCSwiftPackageProductDependency section */ + }; + rootObject = 3B1879202A69C9CD00265B15 /* Project object */; +} diff --git a/Examples/Integration/SPMApp/SPMApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Examples/Integration/SPMApp/SPMApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..919434a6 --- /dev/null +++ b/Examples/Integration/SPMApp/SPMApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Examples/Integration/SPMApp/SPMApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Examples/Integration/SPMApp/SPMApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved new file mode 100644 index 00000000..b42b2497 --- /dev/null +++ b/Examples/Integration/SPMApp/SPMApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -0,0 +1,32 @@ +{ + "pins" : [ + { + "identity" : "cocoalumberjack", + "kind" : "remoteSourceControl", + "location" : "https://github.com/CocoaLumberjack/CocoaLumberjack.git", + "state" : { + "revision" : "0188d31089b5881a269e01777be74c7316924346", + "version" : "3.8.0" + } + }, + { + "identity" : "rollbar-apple", + "kind" : "remoteSourceControl", + "location" : "git@github.com:rollbar/rollbar-apple.git", + "state" : { + "branch" : "integration_examples", + "revision" : "eb1e002d38dbca25873b3524e11ccdd43841305b" + } + }, + { + "identity" : "swift-log", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-log.git", + "state" : { + "revision" : "32e8d724467f8fe623624570367e3d50c5638e46", + "version" : "1.5.2" + } + } + ], + "version" : 2 +} diff --git a/Examples/Integration/SPMApp/SPMApp/Assets.xcassets/AccentColor.colorset/Contents.json b/Examples/Integration/SPMApp/SPMApp/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 00000000..eb878970 --- /dev/null +++ b/Examples/Integration/SPMApp/SPMApp/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Examples/Integration/SPMApp/SPMApp/Assets.xcassets/AppIcon.appiconset/Contents.json b/Examples/Integration/SPMApp/SPMApp/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..13613e3e --- /dev/null +++ b/Examples/Integration/SPMApp/SPMApp/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,13 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Examples/Integration/SPMApp/SPMApp/Assets.xcassets/Contents.json b/Examples/Integration/SPMApp/SPMApp/Assets.xcassets/Contents.json new file mode 100644 index 00000000..73c00596 --- /dev/null +++ b/Examples/Integration/SPMApp/SPMApp/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Examples/Integration/SPMApp/SPMApp/ContentView.swift b/Examples/Integration/SPMApp/SPMApp/ContentView.swift new file mode 100644 index 00000000..4ed129e5 --- /dev/null +++ b/Examples/Integration/SPMApp/SPMApp/ContentView.swift @@ -0,0 +1,23 @@ +import SwiftUI +import RollbarNotifier + +struct ContentView: View { + var body: some View { + VStack { + Image(systemName: "globe") + .imageScale(.large) + .foregroundColor(.accentColor) + Text("Hello, world!") + } + .padding() + .onAppear { + Rollbar.infoMessage("ContentView Appeared") + } + } +} + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + ContentView() + } +} diff --git a/Examples/Integration/SPMApp/SPMApp/Preview Content/Preview Assets.xcassets/Contents.json b/Examples/Integration/SPMApp/SPMApp/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 00000000..73c00596 --- /dev/null +++ b/Examples/Integration/SPMApp/SPMApp/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Examples/Integration/SPMApp/SPMApp/SPMApp.swift b/Examples/Integration/SPMApp/SPMApp/SPMApp.swift new file mode 100644 index 00000000..74e123dd --- /dev/null +++ b/Examples/Integration/SPMApp/SPMApp/SPMApp.swift @@ -0,0 +1,18 @@ +import SwiftUI +import RollbarNotifier + +@main +struct SPMApp: App { + init() { + let config = RollbarConfig.mutableConfig(withAccessToken: "ACCESSTOKEN") + config.developerOptions.suppressSdkInfoLogging = false + + Rollbar.initWithConfiguration(config) + } + + var body: some Scene { + WindowGroup { + ContentView() + } + } +} From b6a5b1caceaf8add14466d212198c9040ae8dbfb Mon Sep 17 00:00:00 2001 From: Matias Pequeno Date: Thu, 20 Jul 2023 23:40:19 +0200 Subject: [PATCH 4/6] Example integrating Rollbar to a Framework via SPM (#309) --- .../SPMFramework.xcodeproj/project.pbxproj | 379 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/swiftpm/Package.resolved | 32 ++ .../contents.xcworkspacedata | 10 + .../xcshareddata/swiftpm/Package.resolved | 32 ++ .../SPMFramework/SPMFramework/SPMFramework.h | 11 + .../SPMFramework/SPMFramework.swift | 29 ++ .../SPMFrameworkApp.xcodeproj/project.pbxproj | 372 +++++++++++++++++ .../AccentColor.colorset/Contents.json | 11 + .../AppIcon.appiconset/Contents.json | 13 + .../Assets.xcassets/Contents.json | 6 + .../SPMFrameworkApp/ContentView.swift | 14 + .../Preview Assets.xcassets/Contents.json | 6 + .../SPMFrameworkApp/SPMFrameworkApp.swift | 15 + 14 files changed, 937 insertions(+) create mode 100644 Examples/Integration/SPMFramework/SPMFramework.xcodeproj/project.pbxproj create mode 100644 Examples/Integration/SPMFramework/SPMFramework.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Examples/Integration/SPMFramework/SPMFramework.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved create mode 100644 Examples/Integration/SPMFramework/SPMFramework.xcworkspace/contents.xcworkspacedata create mode 100644 Examples/Integration/SPMFramework/SPMFramework.xcworkspace/xcshareddata/swiftpm/Package.resolved create mode 100644 Examples/Integration/SPMFramework/SPMFramework/SPMFramework.h create mode 100644 Examples/Integration/SPMFramework/SPMFramework/SPMFramework.swift create mode 100644 Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp.xcodeproj/project.pbxproj create mode 100644 Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/Assets.xcassets/Contents.json create mode 100644 Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/ContentView.swift create mode 100644 Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/Preview Content/Preview Assets.xcassets/Contents.json create mode 100644 Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/SPMFrameworkApp.swift diff --git a/Examples/Integration/SPMFramework/SPMFramework.xcodeproj/project.pbxproj b/Examples/Integration/SPMFramework/SPMFramework.xcodeproj/project.pbxproj new file mode 100644 index 00000000..be7d9902 --- /dev/null +++ b/Examples/Integration/SPMFramework/SPMFramework.xcodeproj/project.pbxproj @@ -0,0 +1,379 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 3BCA6D272A69D0C70070C892 /* SPMFramework.h in Headers */ = {isa = PBXBuildFile; fileRef = 3BCA6D262A69D0C70070C892 /* SPMFramework.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 3BCA6D2F2A69D1050070C892 /* RollbarNotifier in Frameworks */ = {isa = PBXBuildFile; productRef = 3BCA6D2E2A69D1050070C892 /* RollbarNotifier */; }; + 3BCA6D312A69D1580070C892 /* SPMFramework.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3BCA6D302A69D1580070C892 /* SPMFramework.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 3BCA6D232A69D0C70070C892 /* SPMFramework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SPMFramework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 3BCA6D262A69D0C70070C892 /* SPMFramework.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SPMFramework.h; sourceTree = ""; }; + 3BCA6D302A69D1580070C892 /* SPMFramework.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SPMFramework.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 3BCA6D202A69D0C70070C892 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 3BCA6D2F2A69D1050070C892 /* RollbarNotifier in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 3BCA6D192A69D0C70070C892 = { + isa = PBXGroup; + children = ( + 3BCA6D252A69D0C70070C892 /* SPMFramework */, + 3BCA6D242A69D0C70070C892 /* Products */, + ); + sourceTree = ""; + }; + 3BCA6D242A69D0C70070C892 /* Products */ = { + isa = PBXGroup; + children = ( + 3BCA6D232A69D0C70070C892 /* SPMFramework.framework */, + ); + name = Products; + sourceTree = ""; + }; + 3BCA6D252A69D0C70070C892 /* SPMFramework */ = { + isa = PBXGroup; + children = ( + 3BCA6D302A69D1580070C892 /* SPMFramework.swift */, + 3BCA6D262A69D0C70070C892 /* SPMFramework.h */, + ); + path = SPMFramework; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 3BCA6D1E2A69D0C70070C892 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 3BCA6D272A69D0C70070C892 /* SPMFramework.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 3BCA6D222A69D0C70070C892 /* SPMFramework */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3BCA6D2A2A69D0C70070C892 /* Build configuration list for PBXNativeTarget "SPMFramework" */; + buildPhases = ( + 3BCA6D1E2A69D0C70070C892 /* Headers */, + 3BCA6D1F2A69D0C70070C892 /* Sources */, + 3BCA6D202A69D0C70070C892 /* Frameworks */, + 3BCA6D212A69D0C70070C892 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SPMFramework; + packageProductDependencies = ( + 3BCA6D2E2A69D1050070C892 /* RollbarNotifier */, + ); + productName = SPMFramework; + productReference = 3BCA6D232A69D0C70070C892 /* SPMFramework.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 3BCA6D1A2A69D0C70070C892 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastUpgradeCheck = 1430; + TargetAttributes = { + 3BCA6D222A69D0C70070C892 = { + CreatedOnToolsVersion = 14.3.1; + LastSwiftMigration = 1430; + }; + }; + }; + buildConfigurationList = 3BCA6D1D2A69D0C70070C892 /* Build configuration list for PBXProject "SPMFramework" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 3BCA6D192A69D0C70070C892; + packageReferences = ( + 3BCA6D2D2A69D1050070C892 /* XCRemoteSwiftPackageReference "rollbar-apple" */, + ); + productRefGroup = 3BCA6D242A69D0C70070C892 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 3BCA6D222A69D0C70070C892 /* SPMFramework */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 3BCA6D212A69D0C70070C892 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 3BCA6D1F2A69D0C70070C892 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3BCA6D312A69D1580070C892 /* SPMFramework.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 3BCA6D282A69D0C70070C892 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.4; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 3BCA6D292A69D0C70070C892 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.4; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 3BCA6D2B2A69D0C70070C892 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = 9P5JVC2F34; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; + MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++20"; + PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.apple.example.spm.SPMFramework; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 3BCA6D2C2A69D0C70070C892 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = 9P5JVC2F34; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; + MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++20"; + PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.apple.example.spm.SPMFramework; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 3BCA6D1D2A69D0C70070C892 /* Build configuration list for PBXProject "SPMFramework" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3BCA6D282A69D0C70070C892 /* Debug */, + 3BCA6D292A69D0C70070C892 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3BCA6D2A2A69D0C70070C892 /* Build configuration list for PBXNativeTarget "SPMFramework" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3BCA6D2B2A69D0C70070C892 /* Debug */, + 3BCA6D2C2A69D0C70070C892 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCRemoteSwiftPackageReference section */ + 3BCA6D2D2A69D1050070C892 /* XCRemoteSwiftPackageReference "rollbar-apple" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "git@github.com:rollbar/rollbar-apple.git"; + requirement = { + branch = integration_examples; + kind = branch; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + 3BCA6D2E2A69D1050070C892 /* RollbarNotifier */ = { + isa = XCSwiftPackageProductDependency; + package = 3BCA6D2D2A69D1050070C892 /* XCRemoteSwiftPackageReference "rollbar-apple" */; + productName = RollbarNotifier; + }; +/* End XCSwiftPackageProductDependency section */ + }; + rootObject = 3BCA6D1A2A69D0C70070C892 /* Project object */; +} diff --git a/Examples/Integration/SPMFramework/SPMFramework.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Examples/Integration/SPMFramework/SPMFramework.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..919434a6 --- /dev/null +++ b/Examples/Integration/SPMFramework/SPMFramework.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Examples/Integration/SPMFramework/SPMFramework.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Examples/Integration/SPMFramework/SPMFramework.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved new file mode 100644 index 00000000..b42b2497 --- /dev/null +++ b/Examples/Integration/SPMFramework/SPMFramework.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -0,0 +1,32 @@ +{ + "pins" : [ + { + "identity" : "cocoalumberjack", + "kind" : "remoteSourceControl", + "location" : "https://github.com/CocoaLumberjack/CocoaLumberjack.git", + "state" : { + "revision" : "0188d31089b5881a269e01777be74c7316924346", + "version" : "3.8.0" + } + }, + { + "identity" : "rollbar-apple", + "kind" : "remoteSourceControl", + "location" : "git@github.com:rollbar/rollbar-apple.git", + "state" : { + "branch" : "integration_examples", + "revision" : "eb1e002d38dbca25873b3524e11ccdd43841305b" + } + }, + { + "identity" : "swift-log", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-log.git", + "state" : { + "revision" : "32e8d724467f8fe623624570367e3d50c5638e46", + "version" : "1.5.2" + } + } + ], + "version" : 2 +} diff --git a/Examples/Integration/SPMFramework/SPMFramework.xcworkspace/contents.xcworkspacedata b/Examples/Integration/SPMFramework/SPMFramework.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..e119c627 --- /dev/null +++ b/Examples/Integration/SPMFramework/SPMFramework.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/Examples/Integration/SPMFramework/SPMFramework.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Examples/Integration/SPMFramework/SPMFramework.xcworkspace/xcshareddata/swiftpm/Package.resolved new file mode 100644 index 00000000..b42b2497 --- /dev/null +++ b/Examples/Integration/SPMFramework/SPMFramework.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -0,0 +1,32 @@ +{ + "pins" : [ + { + "identity" : "cocoalumberjack", + "kind" : "remoteSourceControl", + "location" : "https://github.com/CocoaLumberjack/CocoaLumberjack.git", + "state" : { + "revision" : "0188d31089b5881a269e01777be74c7316924346", + "version" : "3.8.0" + } + }, + { + "identity" : "rollbar-apple", + "kind" : "remoteSourceControl", + "location" : "git@github.com:rollbar/rollbar-apple.git", + "state" : { + "branch" : "integration_examples", + "revision" : "eb1e002d38dbca25873b3524e11ccdd43841305b" + } + }, + { + "identity" : "swift-log", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-log.git", + "state" : { + "revision" : "32e8d724467f8fe623624570367e3d50c5638e46", + "version" : "1.5.2" + } + } + ], + "version" : 2 +} diff --git a/Examples/Integration/SPMFramework/SPMFramework/SPMFramework.h b/Examples/Integration/SPMFramework/SPMFramework/SPMFramework.h new file mode 100644 index 00000000..3f9c5b3b --- /dev/null +++ b/Examples/Integration/SPMFramework/SPMFramework/SPMFramework.h @@ -0,0 +1,11 @@ +#import + +//! Project version number for SPMFramework. +FOUNDATION_EXPORT double SPMFrameworkVersionNumber; + +//! Project version string for SPMFramework. +FOUNDATION_EXPORT const unsigned char SPMFrameworkVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + diff --git a/Examples/Integration/SPMFramework/SPMFramework/SPMFramework.swift b/Examples/Integration/SPMFramework/SPMFramework/SPMFramework.swift new file mode 100644 index 00000000..ac5acf8a --- /dev/null +++ b/Examples/Integration/SPMFramework/SPMFramework/SPMFramework.swift @@ -0,0 +1,29 @@ +import SwiftUI +import RollbarNotifier + +public struct SPMFramework { + public static func start() { + let config = RollbarConfig.mutableConfig(withAccessToken: "[ACCESSTOKEN]") + config.developerOptions.suppressSdkInfoLogging = false + + Rollbar.initWithConfiguration(config) + } +} + +public struct HelloWorld: View { + private var title: String + + public init(title: String) { + self.title = title + } + + public var body: some View { + VStack { + Text(self.title) + } + .padding() + .onAppear { + Rollbar.infoMessage("SomeView Appeared") + } + } +} diff --git a/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp.xcodeproj/project.pbxproj b/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp.xcodeproj/project.pbxproj new file mode 100644 index 00000000..fc219c86 --- /dev/null +++ b/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp.xcodeproj/project.pbxproj @@ -0,0 +1,372 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 3BCA6D3F2A69D9D10070C892 /* SPMFrameworkApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3BCA6D3E2A69D9D10070C892 /* SPMFrameworkApp.swift */; }; + 3BCA6D412A69D9D10070C892 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3BCA6D402A69D9D10070C892 /* ContentView.swift */; }; + 3BCA6D432A69D9D20070C892 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3BCA6D422A69D9D20070C892 /* Assets.xcassets */; }; + 3BCA6D462A69D9D20070C892 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3BCA6D452A69D9D20070C892 /* Preview Assets.xcassets */; }; + 3BCA6D4E2A69D9F90070C892 /* SPMFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3BCA6D4D2A69D9F90070C892 /* SPMFramework.framework */; }; + 3BCA6D4F2A69D9F90070C892 /* SPMFramework.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3BCA6D4D2A69D9F90070C892 /* SPMFramework.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 3BCA6D502A69D9F90070C892 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + 3BCA6D4F2A69D9F90070C892 /* SPMFramework.framework in Embed Frameworks */, + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 3BCA6D3B2A69D9D10070C892 /* SPMFrameworkApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SPMFrameworkApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 3BCA6D3E2A69D9D10070C892 /* SPMFrameworkApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SPMFrameworkApp.swift; sourceTree = ""; }; + 3BCA6D402A69D9D10070C892 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 3BCA6D422A69D9D20070C892 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 3BCA6D452A69D9D20070C892 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 3BCA6D4D2A69D9F90070C892 /* SPMFramework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = SPMFramework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 3BCA6D382A69D9D10070C892 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 3BCA6D4E2A69D9F90070C892 /* SPMFramework.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 3BCA6D322A69D9D10070C892 = { + isa = PBXGroup; + children = ( + 3BCA6D3D2A69D9D10070C892 /* SPMFrameworkApp */, + 3BCA6D3C2A69D9D10070C892 /* Products */, + 3BCA6D4C2A69D9F90070C892 /* Frameworks */, + ); + sourceTree = ""; + }; + 3BCA6D3C2A69D9D10070C892 /* Products */ = { + isa = PBXGroup; + children = ( + 3BCA6D3B2A69D9D10070C892 /* SPMFrameworkApp.app */, + ); + name = Products; + sourceTree = ""; + }; + 3BCA6D3D2A69D9D10070C892 /* SPMFrameworkApp */ = { + isa = PBXGroup; + children = ( + 3BCA6D3E2A69D9D10070C892 /* SPMFrameworkApp.swift */, + 3BCA6D402A69D9D10070C892 /* ContentView.swift */, + 3BCA6D422A69D9D20070C892 /* Assets.xcassets */, + 3BCA6D442A69D9D20070C892 /* Preview Content */, + ); + path = SPMFrameworkApp; + sourceTree = ""; + }; + 3BCA6D442A69D9D20070C892 /* Preview Content */ = { + isa = PBXGroup; + children = ( + 3BCA6D452A69D9D20070C892 /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + 3BCA6D4C2A69D9F90070C892 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 3BCA6D4D2A69D9F90070C892 /* SPMFramework.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 3BCA6D3A2A69D9D10070C892 /* SPMFrameworkApp */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3BCA6D492A69D9D20070C892 /* Build configuration list for PBXNativeTarget "SPMFrameworkApp" */; + buildPhases = ( + 3BCA6D372A69D9D10070C892 /* Sources */, + 3BCA6D382A69D9D10070C892 /* Frameworks */, + 3BCA6D392A69D9D10070C892 /* Resources */, + 3BCA6D502A69D9F90070C892 /* Embed Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SPMFrameworkApp; + productName = SPMFrameworkApp; + productReference = 3BCA6D3B2A69D9D10070C892 /* SPMFrameworkApp.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 3BCA6D332A69D9D10070C892 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1430; + LastUpgradeCheck = 1430; + TargetAttributes = { + 3BCA6D3A2A69D9D10070C892 = { + CreatedOnToolsVersion = 14.3.1; + }; + }; + }; + buildConfigurationList = 3BCA6D362A69D9D10070C892 /* Build configuration list for PBXProject "SPMFrameworkApp" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 3BCA6D322A69D9D10070C892; + productRefGroup = 3BCA6D3C2A69D9D10070C892 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 3BCA6D3A2A69D9D10070C892 /* SPMFrameworkApp */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 3BCA6D392A69D9D10070C892 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3BCA6D462A69D9D20070C892 /* Preview Assets.xcassets in Resources */, + 3BCA6D432A69D9D20070C892 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 3BCA6D372A69D9D10070C892 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3BCA6D412A69D9D10070C892 /* ContentView.swift in Sources */, + 3BCA6D3F2A69D9D10070C892 /* SPMFrameworkApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 3BCA6D472A69D9D20070C892 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.4; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 3BCA6D482A69D9D20070C892 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.4; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 3BCA6D4A2A69D9D20070C892 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"SPMFrameworkApp/Preview Content\""; + DEVELOPMENT_TEAM = 9P5JVC2F34; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.apple.example.spm.SPMFrameworkApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 3BCA6D4B2A69D9D20070C892 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"SPMFrameworkApp/Preview Content\""; + DEVELOPMENT_TEAM = 9P5JVC2F34; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.apple.example.spm.SPMFrameworkApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 3BCA6D362A69D9D10070C892 /* Build configuration list for PBXProject "SPMFrameworkApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3BCA6D472A69D9D20070C892 /* Debug */, + 3BCA6D482A69D9D20070C892 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3BCA6D492A69D9D20070C892 /* Build configuration list for PBXNativeTarget "SPMFrameworkApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3BCA6D4A2A69D9D20070C892 /* Debug */, + 3BCA6D4B2A69D9D20070C892 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 3BCA6D332A69D9D10070C892 /* Project object */; +} diff --git a/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/Assets.xcassets/AccentColor.colorset/Contents.json b/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 00000000..eb878970 --- /dev/null +++ b/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/Assets.xcassets/AppIcon.appiconset/Contents.json b/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..13613e3e --- /dev/null +++ b/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,13 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/Assets.xcassets/Contents.json b/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/Assets.xcassets/Contents.json new file mode 100644 index 00000000..73c00596 --- /dev/null +++ b/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/ContentView.swift b/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/ContentView.swift new file mode 100644 index 00000000..9311e933 --- /dev/null +++ b/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/ContentView.swift @@ -0,0 +1,14 @@ +import SwiftUI +import SPMFramework + +struct ContentView: View { + var body: some View { + HelloWorld(title: "Hello World!") + } +} + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + ContentView() + } +} diff --git a/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/Preview Content/Preview Assets.xcassets/Contents.json b/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 00000000..73c00596 --- /dev/null +++ b/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/SPMFrameworkApp.swift b/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/SPMFrameworkApp.swift new file mode 100644 index 00000000..dedea802 --- /dev/null +++ b/Examples/Integration/SPMFramework/SPMFrameworkApp/SPMFrameworkApp/SPMFrameworkApp.swift @@ -0,0 +1,15 @@ +import SwiftUI +import SPMFramework + +@main +struct SPMFrameworkApp: App { + init() { + SPMFramework.start() + } + + var body: some Scene { + WindowGroup { + ContentView() + } + } +} From 99b2772976a3d48c201b7ab7625b8528e3c68404 Mon Sep 17 00:00:00 2001 From: Matias Pequeno Date: Fri, 21 Jul 2023 19:38:24 +0200 Subject: [PATCH 5/6] Example integrating Rollbar to an App via Cocoapods (#316) --- .../CocoapodsApp.xcodeproj/project.pbxproj | 414 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../contents.xcworkspacedata | 10 + .../AccentColor.colorset/Contents.json | 11 + .../AppIcon.appiconset/Contents.json | 13 + .../Assets.xcassets/Contents.json | 6 + .../CocoapodsApp/CocoapodsApp.swift | 18 + .../CocoapodsApp/ContentView.swift | 23 + .../Preview Assets.xcassets/Contents.json | 6 + Examples/Integration/CocoapodsApp/Podfile | 6 + .../Integration/CocoapodsApp/Podfile.lock | 35 ++ 11 files changed, 549 insertions(+) create mode 100644 Examples/Integration/CocoapodsApp/CocoapodsApp.xcodeproj/project.pbxproj create mode 100644 Examples/Integration/CocoapodsApp/CocoapodsApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Examples/Integration/CocoapodsApp/CocoapodsApp.xcworkspace/contents.xcworkspacedata create mode 100644 Examples/Integration/CocoapodsApp/CocoapodsApp/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 Examples/Integration/CocoapodsApp/CocoapodsApp/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 Examples/Integration/CocoapodsApp/CocoapodsApp/Assets.xcassets/Contents.json create mode 100644 Examples/Integration/CocoapodsApp/CocoapodsApp/CocoapodsApp.swift create mode 100644 Examples/Integration/CocoapodsApp/CocoapodsApp/ContentView.swift create mode 100644 Examples/Integration/CocoapodsApp/CocoapodsApp/Preview Content/Preview Assets.xcassets/Contents.json create mode 100644 Examples/Integration/CocoapodsApp/Podfile create mode 100644 Examples/Integration/CocoapodsApp/Podfile.lock diff --git a/Examples/Integration/CocoapodsApp/CocoapodsApp.xcodeproj/project.pbxproj b/Examples/Integration/CocoapodsApp/CocoapodsApp.xcodeproj/project.pbxproj new file mode 100644 index 00000000..05017fa0 --- /dev/null +++ b/Examples/Integration/CocoapodsApp/CocoapodsApp.xcodeproj/project.pbxproj @@ -0,0 +1,414 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 3BCA6D5E2A69E8A10070C892 /* CocoapodsApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3BCA6D5D2A69E8A10070C892 /* CocoapodsApp.swift */; }; + 3BCA6D602A69E8A10070C892 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3BCA6D5F2A69E8A10070C892 /* ContentView.swift */; }; + 3BCA6D622A69E8A20070C892 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3BCA6D612A69E8A20070C892 /* Assets.xcassets */; }; + 3BCA6D652A69E8A20070C892 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3BCA6D642A69E8A20070C892 /* Preview Assets.xcassets */; }; + CFFD7AE83BF7698F039615BC /* Pods_CocoapodsApp.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AEEC9F1F479C3944BB87C855 /* Pods_CocoapodsApp.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 3BCA6D5A2A69E8A10070C892 /* CocoapodsApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CocoapodsApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 3BCA6D5D2A69E8A10070C892 /* CocoapodsApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CocoapodsApp.swift; sourceTree = ""; }; + 3BCA6D5F2A69E8A10070C892 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 3BCA6D612A69E8A20070C892 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 3BCA6D642A69E8A20070C892 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + AEEC9F1F479C3944BB87C855 /* Pods_CocoapodsApp.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CocoapodsApp.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + BA7DEA71DE388F2833EAC14B /* Pods-CocoapodsApp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CocoapodsApp.debug.xcconfig"; path = "Target Support Files/Pods-CocoapodsApp/Pods-CocoapodsApp.debug.xcconfig"; sourceTree = ""; }; + D2EE0096D553F766A97BC2FE /* Pods-CocoapodsApp.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CocoapodsApp.release.xcconfig"; path = "Target Support Files/Pods-CocoapodsApp/Pods-CocoapodsApp.release.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 3BCA6D572A69E8A10070C892 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + CFFD7AE83BF7698F039615BC /* Pods_CocoapodsApp.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 1F5373328D3AD4330A79A4CD /* Frameworks */ = { + isa = PBXGroup; + children = ( + AEEC9F1F479C3944BB87C855 /* Pods_CocoapodsApp.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 3BCA6D512A69E8A10070C892 = { + isa = PBXGroup; + children = ( + 3BCA6D5C2A69E8A10070C892 /* CocoapodsApp */, + 3BCA6D5B2A69E8A10070C892 /* Products */, + E7979772D56607EA4E624569 /* Pods */, + 1F5373328D3AD4330A79A4CD /* Frameworks */, + ); + sourceTree = ""; + }; + 3BCA6D5B2A69E8A10070C892 /* Products */ = { + isa = PBXGroup; + children = ( + 3BCA6D5A2A69E8A10070C892 /* CocoapodsApp.app */, + ); + name = Products; + sourceTree = ""; + }; + 3BCA6D5C2A69E8A10070C892 /* CocoapodsApp */ = { + isa = PBXGroup; + children = ( + 3BCA6D5D2A69E8A10070C892 /* CocoapodsApp.swift */, + 3BCA6D5F2A69E8A10070C892 /* ContentView.swift */, + 3BCA6D612A69E8A20070C892 /* Assets.xcassets */, + 3BCA6D632A69E8A20070C892 /* Preview Content */, + ); + path = CocoapodsApp; + sourceTree = ""; + }; + 3BCA6D632A69E8A20070C892 /* Preview Content */ = { + isa = PBXGroup; + children = ( + 3BCA6D642A69E8A20070C892 /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + E7979772D56607EA4E624569 /* Pods */ = { + isa = PBXGroup; + children = ( + BA7DEA71DE388F2833EAC14B /* Pods-CocoapodsApp.debug.xcconfig */, + D2EE0096D553F766A97BC2FE /* Pods-CocoapodsApp.release.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 3BCA6D592A69E8A10070C892 /* CocoapodsApp */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3BCA6D682A69E8A20070C892 /* Build configuration list for PBXNativeTarget "CocoapodsApp" */; + buildPhases = ( + 2FA2F0A0E2E96821B53065CC /* [CP] Check Pods Manifest.lock */, + 3BCA6D562A69E8A10070C892 /* Sources */, + 3BCA6D572A69E8A10070C892 /* Frameworks */, + 3BCA6D582A69E8A10070C892 /* Resources */, + 7958D000A7487805B777783C /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = CocoapodsApp; + productName = CocoapodsApp; + productReference = 3BCA6D5A2A69E8A10070C892 /* CocoapodsApp.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 3BCA6D522A69E8A10070C892 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1430; + LastUpgradeCheck = 1430; + TargetAttributes = { + 3BCA6D592A69E8A10070C892 = { + CreatedOnToolsVersion = 14.3.1; + }; + }; + }; + buildConfigurationList = 3BCA6D552A69E8A10070C892 /* Build configuration list for PBXProject "CocoapodsApp" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 3BCA6D512A69E8A10070C892; + productRefGroup = 3BCA6D5B2A69E8A10070C892 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 3BCA6D592A69E8A10070C892 /* CocoapodsApp */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 3BCA6D582A69E8A10070C892 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3BCA6D652A69E8A20070C892 /* Preview Assets.xcassets in Resources */, + 3BCA6D622A69E8A20070C892 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 2FA2F0A0E2E96821B53065CC /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-CocoapodsApp-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 7958D000A7487805B777783C /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-CocoapodsApp/Pods-CocoapodsApp-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-CocoapodsApp/Pods-CocoapodsApp-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-CocoapodsApp/Pods-CocoapodsApp-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 3BCA6D562A69E8A10070C892 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3BCA6D602A69E8A10070C892 /* ContentView.swift in Sources */, + 3BCA6D5E2A69E8A10070C892 /* CocoapodsApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 3BCA6D662A69E8A20070C892 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.4; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 3BCA6D672A69E8A20070C892 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.4; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 3BCA6D692A69E8A20070C892 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = BA7DEA71DE388F2833EAC14B /* Pods-CocoapodsApp.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"CocoapodsApp/Preview Content\""; + DEVELOPMENT_TEAM = 9P5JVC2F34; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.apple.example.spm.CocoapodsApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 3BCA6D6A2A69E8A20070C892 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = D2EE0096D553F766A97BC2FE /* Pods-CocoapodsApp.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"CocoapodsApp/Preview Content\""; + DEVELOPMENT_TEAM = 9P5JVC2F34; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.apple.example.spm.CocoapodsApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 3BCA6D552A69E8A10070C892 /* Build configuration list for PBXProject "CocoapodsApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3BCA6D662A69E8A20070C892 /* Debug */, + 3BCA6D672A69E8A20070C892 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3BCA6D682A69E8A20070C892 /* Build configuration list for PBXNativeTarget "CocoapodsApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3BCA6D692A69E8A20070C892 /* Debug */, + 3BCA6D6A2A69E8A20070C892 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 3BCA6D522A69E8A10070C892 /* Project object */; +} diff --git a/Examples/Integration/CocoapodsApp/CocoapodsApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Examples/Integration/CocoapodsApp/CocoapodsApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..919434a6 --- /dev/null +++ b/Examples/Integration/CocoapodsApp/CocoapodsApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Examples/Integration/CocoapodsApp/CocoapodsApp.xcworkspace/contents.xcworkspacedata b/Examples/Integration/CocoapodsApp/CocoapodsApp.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..29a2e68e --- /dev/null +++ b/Examples/Integration/CocoapodsApp/CocoapodsApp.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/Examples/Integration/CocoapodsApp/CocoapodsApp/Assets.xcassets/AccentColor.colorset/Contents.json b/Examples/Integration/CocoapodsApp/CocoapodsApp/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 00000000..eb878970 --- /dev/null +++ b/Examples/Integration/CocoapodsApp/CocoapodsApp/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Examples/Integration/CocoapodsApp/CocoapodsApp/Assets.xcassets/AppIcon.appiconset/Contents.json b/Examples/Integration/CocoapodsApp/CocoapodsApp/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..13613e3e --- /dev/null +++ b/Examples/Integration/CocoapodsApp/CocoapodsApp/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,13 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Examples/Integration/CocoapodsApp/CocoapodsApp/Assets.xcassets/Contents.json b/Examples/Integration/CocoapodsApp/CocoapodsApp/Assets.xcassets/Contents.json new file mode 100644 index 00000000..73c00596 --- /dev/null +++ b/Examples/Integration/CocoapodsApp/CocoapodsApp/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Examples/Integration/CocoapodsApp/CocoapodsApp/CocoapodsApp.swift b/Examples/Integration/CocoapodsApp/CocoapodsApp/CocoapodsApp.swift new file mode 100644 index 00000000..8a1df043 --- /dev/null +++ b/Examples/Integration/CocoapodsApp/CocoapodsApp/CocoapodsApp.swift @@ -0,0 +1,18 @@ +import SwiftUI +import RollbarNotifier + +@main +struct CocoapodsApp: App { + init() { + let config = RollbarConfig.mutableConfig(withAccessToken: "ACCESSTOKEN") + config.developerOptions.suppressSdkInfoLogging = false + + Rollbar.initWithConfiguration(config) + } + + var body: some Scene { + WindowGroup { + ContentView() + } + } +} diff --git a/Examples/Integration/CocoapodsApp/CocoapodsApp/ContentView.swift b/Examples/Integration/CocoapodsApp/CocoapodsApp/ContentView.swift new file mode 100644 index 00000000..4ed129e5 --- /dev/null +++ b/Examples/Integration/CocoapodsApp/CocoapodsApp/ContentView.swift @@ -0,0 +1,23 @@ +import SwiftUI +import RollbarNotifier + +struct ContentView: View { + var body: some View { + VStack { + Image(systemName: "globe") + .imageScale(.large) + .foregroundColor(.accentColor) + Text("Hello, world!") + } + .padding() + .onAppear { + Rollbar.infoMessage("ContentView Appeared") + } + } +} + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + ContentView() + } +} diff --git a/Examples/Integration/CocoapodsApp/CocoapodsApp/Preview Content/Preview Assets.xcassets/Contents.json b/Examples/Integration/CocoapodsApp/CocoapodsApp/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 00000000..73c00596 --- /dev/null +++ b/Examples/Integration/CocoapodsApp/CocoapodsApp/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Examples/Integration/CocoapodsApp/Podfile b/Examples/Integration/CocoapodsApp/Podfile new file mode 100644 index 00000000..abc53d7a --- /dev/null +++ b/Examples/Integration/CocoapodsApp/Podfile @@ -0,0 +1,6 @@ +platform :ios, '14.0' +use_frameworks! + +target 'CocoapodsApp' do + pod 'RollbarNotifier', '~> 3.1.0' +end diff --git a/Examples/Integration/CocoapodsApp/Podfile.lock b/Examples/Integration/CocoapodsApp/Podfile.lock new file mode 100644 index 00000000..21dccfae --- /dev/null +++ b/Examples/Integration/CocoapodsApp/Podfile.lock @@ -0,0 +1,35 @@ +PODS: + - RollbarCommon (3.1.0) + - RollbarCrash (3.1.0) + - RollbarNotifier (3.1.0): + - RollbarCommon (~> 3.1.0) + - RollbarCrash (~> 3.1.0) + - RollbarReport (~> 3.1.0) + - RollbarReport (3.1.0): + - RollbarCrash (~> 3.1.0) + +DEPENDENCIES: + - RollbarCommon (from `../../../`) + - RollbarCrash (from `../../../`) + - RollbarNotifier (from `../../../`) + - RollbarReport (from `../../../`) + +EXTERNAL SOURCES: + RollbarCommon: + :path: "../../../" + RollbarCrash: + :path: "../../../" + RollbarNotifier: + :path: "../../../" + RollbarReport: + :path: "../../../" + +SPEC CHECKSUMS: + RollbarCommon: 125fb7e9fa63ea79ef33ee0f0e50456bb9f9cdf5 + RollbarCrash: d831f9c067bbe2147080a700c0a7ebc346d31db3 + RollbarNotifier: c712946d79d82103fc2ae07956c768ba8705dee2 + RollbarReport: 2f42cb47ce9f0be32c5e040e702f936b99e62542 + +PODFILE CHECKSUM: 67f7079dea0a413cbd163635c7d721b213865260 + +COCOAPODS: 1.12.1 From 19a0692f6e533234226f01747ccd1063a60a6f44 Mon Sep 17 00:00:00 2001 From: Matias Pequeno Date: Fri, 21 Jul 2023 19:38:47 +0200 Subject: [PATCH 6/6] Example integrating Rollbar to a Framework via Cocoapods (#317) --- .../project.pbxproj | 405 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../contents.xcworkspacedata | 10 + .../CocoapodsFramework/CocoapodsFramework.h | 11 + .../CocoapodsFramework.swift | 29 ++ .../Integration/CocoapodsFramework/Podfile | 6 + .../CocoapodsFramework/Podfile.lock | 35 ++ 7 files changed, 503 insertions(+) create mode 100644 Examples/Integration/CocoapodsFramework/CocoapodsFramework.xcodeproj/project.pbxproj create mode 100644 Examples/Integration/CocoapodsFramework/CocoapodsFramework.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Examples/Integration/CocoapodsFramework/CocoapodsFramework.xcworkspace/contents.xcworkspacedata create mode 100644 Examples/Integration/CocoapodsFramework/CocoapodsFramework/CocoapodsFramework.h create mode 100644 Examples/Integration/CocoapodsFramework/CocoapodsFramework/CocoapodsFramework.swift create mode 100644 Examples/Integration/CocoapodsFramework/Podfile create mode 100644 Examples/Integration/CocoapodsFramework/Podfile.lock diff --git a/Examples/Integration/CocoapodsFramework/CocoapodsFramework.xcodeproj/project.pbxproj b/Examples/Integration/CocoapodsFramework/CocoapodsFramework.xcodeproj/project.pbxproj new file mode 100644 index 00000000..b942164d --- /dev/null +++ b/Examples/Integration/CocoapodsFramework/CocoapodsFramework.xcodeproj/project.pbxproj @@ -0,0 +1,405 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 3B6B38532A6AE8ED008E78AB /* CocoapodsFramework.h in Headers */ = {isa = PBXBuildFile; fileRef = 3B6B38522A6AE8ED008E78AB /* CocoapodsFramework.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 3B6B385A2A6AE915008E78AB /* CocoapodsFramework.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B6B38592A6AE915008E78AB /* CocoapodsFramework.swift */; }; + 51359F654A1530217187D47B /* Pods_CocoapodsFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2155A86CCF0327D1C88FAF02 /* Pods_CocoapodsFramework.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 2155A86CCF0327D1C88FAF02 /* Pods_CocoapodsFramework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CocoapodsFramework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 3B6B384F2A6AE8ED008E78AB /* CocoapodsFramework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CocoapodsFramework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 3B6B38522A6AE8ED008E78AB /* CocoapodsFramework.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CocoapodsFramework.h; sourceTree = ""; }; + 3B6B38592A6AE915008E78AB /* CocoapodsFramework.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CocoapodsFramework.swift; sourceTree = ""; }; + 3F6E3CC94B793D79C63BFD81 /* Pods-CocoapodsFramework.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CocoapodsFramework.debug.xcconfig"; path = "Target Support Files/Pods-CocoapodsFramework/Pods-CocoapodsFramework.debug.xcconfig"; sourceTree = ""; }; + A9482626E36714146166D568 /* Pods-CocoapodsFramework.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CocoapodsFramework.release.xcconfig"; path = "Target Support Files/Pods-CocoapodsFramework/Pods-CocoapodsFramework.release.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 3B6B384C2A6AE8ED008E78AB /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 51359F654A1530217187D47B /* Pods_CocoapodsFramework.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 3B6B38452A6AE8ED008E78AB = { + isa = PBXGroup; + children = ( + 3B6B38512A6AE8ED008E78AB /* CocoapodsFramework */, + 3B6B38502A6AE8ED008E78AB /* Products */, + 6BB208CF2AA2FF79628B7156 /* Pods */, + E5B05358B2AED92735831F13 /* Frameworks */, + ); + sourceTree = ""; + }; + 3B6B38502A6AE8ED008E78AB /* Products */ = { + isa = PBXGroup; + children = ( + 3B6B384F2A6AE8ED008E78AB /* CocoapodsFramework.framework */, + ); + name = Products; + sourceTree = ""; + }; + 3B6B38512A6AE8ED008E78AB /* CocoapodsFramework */ = { + isa = PBXGroup; + children = ( + 3B6B38522A6AE8ED008E78AB /* CocoapodsFramework.h */, + 3B6B38592A6AE915008E78AB /* CocoapodsFramework.swift */, + ); + path = CocoapodsFramework; + sourceTree = ""; + }; + 6BB208CF2AA2FF79628B7156 /* Pods */ = { + isa = PBXGroup; + children = ( + 3F6E3CC94B793D79C63BFD81 /* Pods-CocoapodsFramework.debug.xcconfig */, + A9482626E36714146166D568 /* Pods-CocoapodsFramework.release.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; + E5B05358B2AED92735831F13 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 2155A86CCF0327D1C88FAF02 /* Pods_CocoapodsFramework.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 3B6B384A2A6AE8ED008E78AB /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 3B6B38532A6AE8ED008E78AB /* CocoapodsFramework.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 3B6B384E2A6AE8ED008E78AB /* CocoapodsFramework */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3B6B38562A6AE8ED008E78AB /* Build configuration list for PBXNativeTarget "CocoapodsFramework" */; + buildPhases = ( + 92201125617AD1589EB6DF22 /* [CP] Check Pods Manifest.lock */, + 3B6B384A2A6AE8ED008E78AB /* Headers */, + 3B6B384B2A6AE8ED008E78AB /* Sources */, + 3B6B384C2A6AE8ED008E78AB /* Frameworks */, + 3B6B384D2A6AE8ED008E78AB /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = CocoapodsFramework; + productName = CocoapodsFramework; + productReference = 3B6B384F2A6AE8ED008E78AB /* CocoapodsFramework.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 3B6B38462A6AE8ED008E78AB /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastUpgradeCheck = 1430; + TargetAttributes = { + 3B6B384E2A6AE8ED008E78AB = { + CreatedOnToolsVersion = 14.3.1; + LastSwiftMigration = 1430; + }; + }; + }; + buildConfigurationList = 3B6B38492A6AE8ED008E78AB /* Build configuration list for PBXProject "CocoapodsFramework" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 3B6B38452A6AE8ED008E78AB; + productRefGroup = 3B6B38502A6AE8ED008E78AB /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 3B6B384E2A6AE8ED008E78AB /* CocoapodsFramework */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 3B6B384D2A6AE8ED008E78AB /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 92201125617AD1589EB6DF22 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-CocoapodsFramework-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 3B6B384B2A6AE8ED008E78AB /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3B6B385A2A6AE915008E78AB /* CocoapodsFramework.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 3B6B38542A6AE8ED008E78AB /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.4; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 3B6B38552A6AE8ED008E78AB /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 16.4; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; + 3B6B38572A6AE8ED008E78AB /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 3F6E3CC94B793D79C63BFD81 /* Pods-CocoapodsFramework.debug.xcconfig */; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = 9P5JVC2F34; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; + MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++20"; + PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.apple.example.spm.CocoapodsFramework; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 3B6B38582A6AE8ED008E78AB /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = A9482626E36714146166D568 /* Pods-CocoapodsFramework.release.xcconfig */; + buildSettings = { + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = 9P5JVC2F34; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; + MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu11 gnu++20"; + PRODUCT_BUNDLE_IDENTIFIER = com.rollbar.apple.example.spm.CocoapodsFramework; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 3B6B38492A6AE8ED008E78AB /* Build configuration list for PBXProject "CocoapodsFramework" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3B6B38542A6AE8ED008E78AB /* Debug */, + 3B6B38552A6AE8ED008E78AB /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3B6B38562A6AE8ED008E78AB /* Build configuration list for PBXNativeTarget "CocoapodsFramework" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3B6B38572A6AE8ED008E78AB /* Debug */, + 3B6B38582A6AE8ED008E78AB /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 3B6B38462A6AE8ED008E78AB /* Project object */; +} diff --git a/Examples/Integration/CocoapodsFramework/CocoapodsFramework.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Examples/Integration/CocoapodsFramework/CocoapodsFramework.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..919434a6 --- /dev/null +++ b/Examples/Integration/CocoapodsFramework/CocoapodsFramework.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Examples/Integration/CocoapodsFramework/CocoapodsFramework.xcworkspace/contents.xcworkspacedata b/Examples/Integration/CocoapodsFramework/CocoapodsFramework.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..943395a8 --- /dev/null +++ b/Examples/Integration/CocoapodsFramework/CocoapodsFramework.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/Examples/Integration/CocoapodsFramework/CocoapodsFramework/CocoapodsFramework.h b/Examples/Integration/CocoapodsFramework/CocoapodsFramework/CocoapodsFramework.h new file mode 100644 index 00000000..6fee54a6 --- /dev/null +++ b/Examples/Integration/CocoapodsFramework/CocoapodsFramework/CocoapodsFramework.h @@ -0,0 +1,11 @@ +#import + +//! Project version number for CocoapodsFramework. +FOUNDATION_EXPORT double CocoapodsFrameworkVersionNumber; + +//! Project version string for CocoapodsFramework. +FOUNDATION_EXPORT const unsigned char CocoapodsFrameworkVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + diff --git a/Examples/Integration/CocoapodsFramework/CocoapodsFramework/CocoapodsFramework.swift b/Examples/Integration/CocoapodsFramework/CocoapodsFramework/CocoapodsFramework.swift new file mode 100644 index 00000000..ac5acf8a --- /dev/null +++ b/Examples/Integration/CocoapodsFramework/CocoapodsFramework/CocoapodsFramework.swift @@ -0,0 +1,29 @@ +import SwiftUI +import RollbarNotifier + +public struct SPMFramework { + public static func start() { + let config = RollbarConfig.mutableConfig(withAccessToken: "[ACCESSTOKEN]") + config.developerOptions.suppressSdkInfoLogging = false + + Rollbar.initWithConfiguration(config) + } +} + +public struct HelloWorld: View { + private var title: String + + public init(title: String) { + self.title = title + } + + public var body: some View { + VStack { + Text(self.title) + } + .padding() + .onAppear { + Rollbar.infoMessage("SomeView Appeared") + } + } +} diff --git a/Examples/Integration/CocoapodsFramework/Podfile b/Examples/Integration/CocoapodsFramework/Podfile new file mode 100644 index 00000000..ff985a87 --- /dev/null +++ b/Examples/Integration/CocoapodsFramework/Podfile @@ -0,0 +1,6 @@ +platform :ios, '14.0' +use_frameworks! + +target 'CocoapodsFramework' do + pod 'RollbarNotifier', '~> 3.1.0' +end diff --git a/Examples/Integration/CocoapodsFramework/Podfile.lock b/Examples/Integration/CocoapodsFramework/Podfile.lock new file mode 100644 index 00000000..059aa22d --- /dev/null +++ b/Examples/Integration/CocoapodsFramework/Podfile.lock @@ -0,0 +1,35 @@ +PODS: + - RollbarCommon (3.1.0) + - RollbarCrash (3.1.0) + - RollbarNotifier (3.1.0): + - RollbarCommon (~> 3.1.0) + - RollbarCrash (~> 3.1.0) + - RollbarReport (~> 3.1.0) + - RollbarReport (3.1.0): + - RollbarCrash (~> 3.1.0) + +DEPENDENCIES: + - RollbarCommon (from `../../../`) + - RollbarCrash (from `../../../`) + - RollbarNotifier (from `../../../`) + - RollbarReport (from `../../../`) + +EXTERNAL SOURCES: + RollbarCommon: + :path: "../../../" + RollbarCrash: + :path: "../../../" + RollbarNotifier: + :path: "../../../" + RollbarReport: + :path: "../../../" + +SPEC CHECKSUMS: + RollbarCommon: 125fb7e9fa63ea79ef33ee0f0e50456bb9f9cdf5 + RollbarCrash: d831f9c067bbe2147080a700c0a7ebc346d31db3 + RollbarNotifier: c712946d79d82103fc2ae07956c768ba8705dee2 + RollbarReport: 2f42cb47ce9f0be32c5e040e702f936b99e62542 + +PODFILE CHECKSUM: 5275e0d96c9f6b1d06ef6f586fede164fdb00d8c + +COCOAPODS: 1.12.1