More Swift SDK fixes

This commit is contained in:
Konstantin Wohlwend 2026-01-19 14:38:29 -08:00
parent 154d2a6922
commit 0220219363
7 changed files with 1919 additions and 675 deletions

View File

@ -1,5 +1,6 @@
import SwiftUI
import AppKit
import AuthenticationServices
import StackAuth
@main
@ -1224,15 +1225,25 @@ struct ContactChannelsView: View {
}
}
// MARK: - OAuth Presentation Context Provider
class MacOSPresentationContextProvider: NSObject, ASWebAuthenticationPresentationContextProviding {
func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor {
return NSApplication.shared.windows.first ?? ASPresentationAnchor()
}
}
// MARK: - OAuth View
struct OAuthView: View {
@Bindable var viewModel: SDKTestViewModel
@State private var provider = "google"
@State private var isSigningIn = false
private let presentationProvider = MacOSPresentationContextProvider()
var body: some View {
Form {
Section("OAuth URL Generation") {
Section("Sign In with OAuth") {
TextField("Provider", text: $provider)
HStack {
@ -1241,15 +1252,65 @@ struct OAuthView: View {
Button("microsoft") { provider = "microsoft" }
}
Button("signInWithOAuth(provider: \"\(provider)\")") {
Task { await signInWithOAuth() }
}
.disabled(isSigningIn)
if isSigningIn {
HStack {
ProgressView()
.scaleEffect(0.7)
Text("Waiting for OAuth...")
.foregroundStyle(.secondary)
}
}
}
Section("OAuth URL Generation (Manual)") {
Button("getOAuthUrl(provider: \"\(provider)\")") {
Task { await getOAuthUrl() }
}
Text("Returns URL, state, and codeVerifier for manual OAuth handling")
.font(.caption)
.foregroundStyle(.secondary)
}
}
.formStyle(.grouped)
.navigationTitle("OAuth")
}
func signInWithOAuth() async {
let params = "provider: \"\(provider)\""
viewModel.logInfo("signInWithOAuth()", message: "Opening OAuth browser...", details: params)
isSigningIn = true
do {
try await viewModel.clientApp.signInWithOAuth(
provider: provider,
presentationContextProvider: presentationProvider
)
viewModel.logCall(
"signInWithOAuth(provider:)",
params: params,
result: "Success! User signed in via OAuth."
)
// Fetch user to show details
if let user = try await viewModel.clientApp.getUser() {
let dict = await serializeCurrentUser(user)
viewModel.logCall(
"getUser() after OAuth",
result: formatObject("CurrentUser", dict)
)
}
} catch {
viewModel.logCall("signInWithOAuth(provider:)", params: params, error: error)
}
isSigningIn = false
}
func getOAuthUrl() async {
let params = "provider: \"\(provider)\""
viewModel.logInfo("getOAuthUrl()", message: "Calling...", details: params)

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>

View File

@ -1,21 +0,0 @@
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "StackAuthiOS",
platforms: [
.iOS(.v17)
],
dependencies: [
.package(name: "StackAuth", path: "../..")
],
targets: [
.executableTarget(
name: "StackAuthiOS",
dependencies: [
.product(name: "StackAuth", package: "StackAuth")
],
path: "StackAuthiOS"
)
]
)

View File

@ -1,107 +1,103 @@
# Stack Auth iOS Example
A comprehensive iOS SwiftUI application for testing all Stack Auth SDK functions interactively.
An interactive iOS application for testing all Stack Auth Swift SDK functions.
## Prerequisites
- iOS 17.0+
- Swift 5.9+
- Xcode 15.0+
- A running Stack Auth backend accessible from the iOS device/simulator
- Xcode 15.0 or later
- iOS 17.0+ Simulator or device
- Running Stack Auth backend (default: `http://localhost:8102`)
## Running the Example
1. Start the Stack Auth backend:
### Option 1: Xcode
1. Open the project in Xcode:
```bash
cd /path/to/stack-2
pnpm run dev
open StackAuthiOS.xcodeproj
```
2. Open in Xcode:
```bash
cd Examples/StackAuthiOS
open Package.swift
```
2. Select an iOS Simulator (e.g., "iPhone 17 Pro") as the destination
3. Select an iOS simulator or device and run.
3. Press ⌘R to build and run
**Note**: When testing on a physical device, update the base URL in Settings to point to your machine's IP address (e.g., `http://192.168.1.x:8102`).
### Option 2: Command Line
```bash
# Build
xcodebuild -scheme StackAuthiOS -destination 'platform=iOS Simulator,name=iPhone 17 Pro' build
# Build and run (opens simulator)
xcodebuild -scheme StackAuthiOS -destination 'platform=iOS Simulator,name=iPhone 17 Pro' run
```
## Features
The example app uses a tab-based navigation with the following sections:
The app uses a tab-based interface optimized for mobile:
### Auth Tab
- Sign up with email/password
- Sign in with credentials
- Sign in with wrong password (error testing)
- Sign out
- Get current user
- Get user (or throw)
- Generate OAuth URLs (Google, GitHub, Microsoft)
- **Settings**: Configure API endpoint, project ID, and keys
- **Auth**: Sign up, sign in, sign out, get current user
- **User**: Update display name, metadata, view tokens
- **Teams**: Create, list, and manage teams
- **Logs**: View all SDK calls with full details (tap for more, long-press to copy)
### User Tab
- Set display name
- Update client metadata
- Update password (correct and wrong old password)
- Get access/refresh tokens
- Get auth headers
- Get partial user from token
- List contact channels
### Teams Tab
- Create team
- List user's teams
- Select and view team details
- List team members
- Update team name
### Server Tab
- **Users**
- Create user (basic and with all options)
- List users
- Get/delete user by ID
- Create session (impersonation)
- **Teams**
- Create team
- List all teams
- Add/remove users from teams
- List team users
- Delete team
### Settings Tab
- Configure API base URL
- Configure project ID and API keys
- View operation logs
## Default Configuration
The example is pre-configured for local development:
- Base URL: `http://localhost:8102`
- Project ID: `internal`
- Publishable Key: `this-publishable-client-key-is-for-local-development-only`
- Secret Key: `this-secret-server-key-is-for-local-development-only`
## Simulator Network Notes
When running in the iOS Simulator, `localhost` will connect to your Mac's localhost. For physical devices, use your Mac's local IP address.
Additional functions are accessible via navigation links in Settings:
- Contact Channels
- OAuth URL generation
- Token operations
- Server Users (admin)
- Server Teams (admin)
- Sessions (impersonation)
## SDK Functions Covered
| Category | Functions |
|----------|-----------|
| Auth | signUpWithCredential, signInWithCredential, signOut, getUser, getOAuthUrl |
| User | setDisplayName, update (metadata), updatePassword, getAccessToken, getRefreshToken, getAuthHeaders, getPartialUser |
| Teams | createTeam, listTeams, getTeam, listUsers (team members), update |
| Contact | listContactChannels |
| Server Users | createUser, listUsers, getUser, delete, createSession |
| Server Teams | createTeam, listTeams, getTeam, addUser, removeUser, listUsers, delete |
| Errors | EmailPasswordMismatchError, UserNotSignedInError, PasswordConfirmationMismatchError |
### Client App
- `signUpWithCredential(email:password:)`
- `signInWithCredential(email:password:)`
- `signOut()`
- `getUser()` / `getUser(or:)`
- `getAccessToken()` / `getRefreshToken()`
- `getAuthHeaders()`
- `getOAuthUrl(provider:)`
## Testing Edge Cases
### Current User
- `setDisplayName(_:)`
- `update(clientMetadata:)`
- `listTeams()` / `getTeam(id:)`
- `createTeam(displayName:)`
- `listContactChannels()`
The app includes buttons specifically for testing error scenarios:
- "Sign In (Wrong Password)" - triggers EmailPasswordMismatchError
- "Get User (or throw)" - triggers UserNotSignedInError when not signed in
- "Update (Wrong Old Password)" - triggers PasswordConfirmationMismatchError
### Server App
- `createUser(email:password:...)`
- `listUsers(limit:)`
- `getUser(id:)`
- `createTeam(displayName:)`
- `listTeams()`
- `createSession(userId:)`
## Logging
The Logs tab shows all SDK activity in real-time:
- **Green checkmark**: Successful calls with full response data
- **Red X**: Errors with details
- **Blue info**: In-progress calls
Tap any log entry to see full details. Long-press to copy to clipboard.
## Network Configuration
For iOS Simulator to connect to your local backend:
1. The default `localhost:8102` should work in the simulator
2. For a real device, use your computer's local IP address instead
## Troubleshooting
### "Could not connect to server"
- Ensure your Stack Auth backend is running
- Check the Base URL in Settings tab
- For real devices, use your computer's IP instead of localhost
### Build errors
- Make sure you have Xcode 15+ installed
- Try cleaning: Product → Clean Build Folder (⇧⌘K)

View File

@ -0,0 +1,346 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 56;
objects = {
/* Begin PBXBuildFile section */
E01234560001 /* StackAuthiOSApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = E01234560002; };
E01234560003 /* StackAuth in Frameworks */ = {isa = PBXBuildFile; productRef = E01234560004; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
E01234560002 /* StackAuthiOSApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StackAuthiOSApp.swift; sourceTree = "<group>"; };
E01234560005 /* StackAuthiOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = StackAuthiOS.app; sourceTree = BUILT_PRODUCTS_DIR; };
E01234560006 /* StackAuth */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = StackAuth; path = ../..; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
E01234560007 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
E01234560003 /* StackAuth in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
E01234560008 = {
isa = PBXGroup;
children = (
E01234560009 /* StackAuthiOS */,
E0123456000A /* Products */,
E0123456000B /* Packages */,
);
sourceTree = "<group>";
};
E01234560009 /* StackAuthiOS */ = {
isa = PBXGroup;
children = (
E01234560002 /* StackAuthiOSApp.swift */,
);
path = StackAuthiOS;
sourceTree = "<group>";
};
E0123456000A /* Products */ = {
isa = PBXGroup;
children = (
E01234560005 /* StackAuthiOS.app */,
);
name = Products;
sourceTree = "<group>";
};
E0123456000B /* Packages */ = {
isa = PBXGroup;
children = (
E01234560006 /* StackAuth */,
);
name = Packages;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
E0123456000C /* StackAuthiOS */ = {
isa = PBXNativeTarget;
buildConfigurationList = E0123456000D;
buildPhases = (
E0123456000E /* Sources */,
E01234560007 /* Frameworks */,
);
buildRules = (
);
dependencies = (
);
name = StackAuthiOS;
packageProductDependencies = (
E01234560004 /* StackAuth */,
);
productName = StackAuthiOS;
productReference = E01234560005 /* StackAuthiOS.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
E0123456000F /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1500;
LastUpgradeCheck = 1500;
TargetAttributes = {
E0123456000C = {
CreatedOnToolsVersion = 15.0;
};
};
};
buildConfigurationList = E01234560010;
compatibilityVersion = "Xcode 14.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = E01234560008;
packageReferences = (
E01234560011 /* XCLocalSwiftPackageReference "../.." */,
);
productRefGroup = E0123456000A /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
E0123456000C /* StackAuthiOS */,
);
};
/* End PBXProject section */
/* Begin PBXSourcesBuildPhase section */
E0123456000E /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
E01234560001 /* StackAuthiOSApp.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
E01234560012 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
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;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
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 = 17.0;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
E01234560013 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
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;
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_C_LANGUAGE_STANDARD = gnu17;
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 = 17.0;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
VALIDATE_PRODUCT = YES;
};
name = Release;
};
E01234560014 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
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.stackauth.example.ios;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
E01234560015 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
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.stackauth.example.ios;
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 */
E0123456000D /* Build configuration list for PBXNativeTarget "StackAuthiOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (
E01234560014 /* Debug */,
E01234560015 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
E01234560010 /* Build configuration list for PBXProject "StackAuthiOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (
E01234560012 /* Debug */,
E01234560013 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
/* Begin XCLocalSwiftPackageReference section */
E01234560011 /* XCLocalSwiftPackageReference "../.." */ = {
isa = XCLocalSwiftPackageReference;
relativePath = "../..";
};
/* End XCLocalSwiftPackageReference section */
/* Begin XCSwiftPackageProductDependency section */
E01234560004 /* StackAuth */ = {
isa = XCSwiftPackageProductDependency;
productName = StackAuth;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = E0123456000F /* Project object */;
}

View File

@ -7,6 +7,6 @@
"test": "swift test",
"build": "swift build",
"start:mac-example": "cd Examples/StackAuthMacOS && swift run",
"start:ios-example": "echo 'iOS example requires Xcode. Run: open Examples/StackAuthiOS/Package.swift'"
"start:ios-example": "echo 'iOS example requires Xcode. Run: open Examples/StackAuthiOS/StackAuthiOS.xcodeproj'"
}
}