From 061ad195b47f373ab7a5563ec7eaeae6817ee41c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Stormacq?= Date: Wed, 20 Aug 2025 22:18:26 +0200 Subject: [PATCH 1/3] Update project.pbxproj Update Xcode project to depend on library v1.0.0 --- Examples/ios-math-solver/math.xcodeproj/project.pbxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/ios-math-solver/math.xcodeproj/project.pbxproj b/Examples/ios-math-solver/math.xcodeproj/project.pbxproj index 9df1fc1..b453541 100644 --- a/Examples/ios-math-solver/math.xcodeproj/project.pbxproj +++ b/Examples/ios-math-solver/math.xcodeproj/project.pbxproj @@ -438,8 +438,8 @@ isa = XCRemoteSwiftPackageReference; repositoryURL = "https://github.com/build-on-aws/swift-bedrock-library"; requirement = { - branch = "sebsto/ios-demo"; - kind = branch; + kind = upToNextMajorVersion; + minimumVersion = 1.0.0; }; }; 1C3BC47E2E55F8B0008E6904 /* XCRemoteSwiftPackageReference "swift-log" */ = { From 3615bf3835ffdaf9bd9f0e7bccf20b9631fa233d Mon Sep 17 00:00:00 2001 From: Sebastien Stormacq Date: Wed, 20 Aug 2025 22:33:08 +0200 Subject: [PATCH 2/3] add changeme.swift to project --- Examples/ios-math-solver/math.xcodeproj/project.pbxproj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Examples/ios-math-solver/math.xcodeproj/project.pbxproj b/Examples/ios-math-solver/math.xcodeproj/project.pbxproj index b453541..9c61472 100644 --- a/Examples/ios-math-solver/math.xcodeproj/project.pbxproj +++ b/Examples/ios-math-solver/math.xcodeproj/project.pbxproj @@ -19,6 +19,7 @@ 1C1EB1F72E471EA500C5DE46 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1C1EB1E92E471EA500C5DE46 /* ContentView.swift */; }; 1C1EB1F82E471EA500C5DE46 /* LoginView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1C1EB1EA2E471EA500C5DE46 /* LoginView.swift */; }; 1C1EB1FE2E47204100C5DE46 /* BedrockService in Frameworks */ = {isa = PBXBuildFile; productRef = 1C1EB1FD2E47204100C5DE46 /* BedrockService */; }; + 1C24EDC32E56680B0054568E /* changeme.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1C24EDC22E56680B0054568E /* changeme.swift */; }; 1C3BC4802E55F8B0008E6904 /* Logging in Frameworks */ = {isa = PBXBuildFile; productRef = 1C3BC47F2E55F8B0008E6904 /* Logging */; }; 1CBB02282E54F49A00610FB8 /* BedrockService in Frameworks */ = {isa = PBXBuildFile; productRef = 000E7F392DAF7C8700442BD1 /* BedrockService */; }; /* End PBXBuildFile section */ @@ -35,6 +36,7 @@ 1C1EB1EC2E471EA500C5DE46 /* MathSolverApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MathSolverApp.swift; sourceTree = ""; }; 1C1EB1ED2E471EA500C5DE46 /* MathSolverViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MathSolverViewModel.swift; sourceTree = ""; }; 1C1EB1FF2E4720A700C5DE46 /* math.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = math.entitlements; sourceTree = ""; }; + 1C24EDC22E56680B0054568E /* changeme.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = changeme.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -88,6 +90,7 @@ 1C1EB1EF2E471EA500C5DE46 /* Sources */ = { isa = PBXGroup; children = ( + 1C24EDC22E56680B0054568E /* changeme.swift */, 1C1EB1E52E471EA500C5DE46 /* Preview Content */, 1C1EB1E62E471EA500C5DE46 /* Assets.xcassets */, 1C1EB1E72E471EA500C5DE46 /* AuthenticationManager.swift */, @@ -187,6 +190,7 @@ buildActionMask = 2147483647; files = ( 1C1EB1F22E471EA500C5DE46 /* MathSolverViewModel.swift in Sources */, + 1C24EDC32E56680B0054568E /* changeme.swift in Sources */, 1C1EB1F32E471EA500C5DE46 /* Content.swift in Sources */, 1C1EB1F42E471EA500C5DE46 /* AuthenticationManager.swift in Sources */, 1C1EB1F52E471EA500C5DE46 /* MathSolverApp.swift in Sources */, From 18dbb562da6ca30c07074ed024a5c16182302409 Mon Sep 17 00:00:00 2001 From: Sebastien Stormacq Date: Wed, 20 Aug 2025 22:33:19 +0200 Subject: [PATCH 3/3] change visibility to package --- Examples/ios-math-solver/Sources/changeme.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/ios-math-solver/Sources/changeme.swift b/Examples/ios-math-solver/Sources/changeme.swift index 921c930..ae98ff6 100644 --- a/Examples/ios-math-solver/Sources/changeme.swift +++ b/Examples/ios-math-solver/Sources/changeme.swift @@ -16,5 +16,5 @@ // to integrate with Sign In With Apple (SIWA), you must prepare your AWS account // Follow instructions at https://docs.aws.amazon.com/sdk-for-swift/latest/developer-guide/apple-integration.html#apple-sign-in -private let awsAccountNumber = "0000000000" // TODO: Replace with your AWS account number -private let awsIAMRoleName = "your-iam-ios-swift-bedrock-role-name" // TODO: Replace with your IAM role name +let awsAccountNumber = "0000000000" // TODO: Replace with your AWS account number +let awsIAMRoleName = "your-iam-ios-swift-bedrock-role-name" // TODO: Replace with your IAM role name