Skip to content

Commit

Permalink
Use tuist to generate xcode projects (stripe#2102)
Browse files Browse the repository at this point in the history
* [WIP] First pass at generating projects with tuist

* Second pass

* Second pass

* Merge

* Update settings

* Fix some tests

* Regenerate project files

* More updates to fix tests

* Addressing comments

* Set CODE_SIGN_IDENTITY in tests

* Attempt to fix tests

* Regenerate project

* Fix remaining workflows

* Fix config typos

* Add docs to helper functions

* Update after rebase

* Revert removed @_spi

* Remove unused test

* Remove empty test files/targets

* Fix stubbed network test case
  • Loading branch information
eurias-stripe authored Dec 20, 2022
1 parent acf016d commit 2a04cc6
Show file tree
Hide file tree
Showing 1,575 changed files with 20,264 additions and 21,841 deletions.
34 changes: 34 additions & 0 deletions .package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"object": {
"pins": [
{
"package": "iOSSnapshotTestCase",
"repositoryURL": "https://github.com/uber/ios-snapshot-test-case",
"state": {
"branch": null,
"revision": "7b10770333a961be6e5a41c9ce04b8c6d3990126",
"version": "8.0.0"
}
},
{
"package": "OCMock",
"repositoryURL": "https://github.com/erikdoe/ocmock",
"state": {
"branch": "master",
"revision": "05cbc9d934e84ad32530fa53fd7d29c7966d5828",
"version": null
}
},
{
"package": "OHHTTPStubs",
"repositoryURL": "https://github.com/eurias-stripe/OHHTTPStubs",
"state": {
"branch": "master",
"revision": "94cf8e1d9e38b0edd580ddc699dda23a7bf66515",
"version": null
}
}
]
},
"version": 1
}
3 changes: 3 additions & 0 deletions BuildConfigurations/Project-Debug.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ ONLY_ACTIVE_ARCH = YES


ENABLE_TESTABILITY = YES
SWIFT_OPTIMIZATION_LEVEL = -Onone
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG
3 changes: 3 additions & 0 deletions BuildConfigurations/Project-Release.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ GCC_PREPROCESSOR_DEFINITIONS = NDEBUG $(STP_EXTRA_PREPROCESSOR_MACROS)

VALIDATE_PRODUCT = YES

SWIFT_OPTIMIZATION_LEVEL = -O
SWIFT_COMPILATION_MODE = wholemodule
MTL_ENABLE_DEBUG_INFO = NO
10 changes: 10 additions & 0 deletions BuildConfigurations/Project-Shared.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ CLANG_WARN_COMMA = YES

CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES

CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES

CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES

CLANG_WARN_OBJC_LITERAL_CONVERSION = YES

CLANG_ENABLE_OBJC_WEAK = YES

// Compiler for C/C++/Objective-C
//
Expand Down Expand Up @@ -167,3 +174,6 @@ WARNING_CFLAGS = -Wall -Wextra -Wundef -Wfloat-equal
IPHONEOS_DEPLOYMENT_TARGET = 13.0

APPLICATION_EXTENSION_API_ONLY = NO

SWIFT_VERSION = 5.0
MTL_FAST_MATH = YES
1 change: 1 addition & 0 deletions BuildConfigurations/StripeiOS Tests-Debug.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1 $(inherited)
DEBUG_INFORMATION_FORMAT = dwarf
SWIFT_ACTIVE_COMPILATION_CONDITIONS[arch=*] = DEBUG $(inherited)
SWIFT_OPTIMIZATION_LEVEL = -Onone
3 changes: 2 additions & 1 deletion BuildConfigurations/StripeiOS Tests-Shared.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR

CODE_SIGN_IDENTITY = iPhone Developer


// Framework Search Paths
//
// This is a list of paths to folders containing frameworks to be searched by the
Expand Down Expand Up @@ -87,3 +86,5 @@ OTHER_CFLAGS =
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES

LIBRARY_SEARCH_PATHS = $(inherited)

DEFINES_MODULE = YES
2 changes: 1 addition & 1 deletion BuildConfigurations/StripeiOS-Shared.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ CLANG_WARN_ASSIGN_ENUM = YES
CLANG_WARN_DOCUMENTATION_COMMENTS = YES
CLANG_WARN_UNGUARDED_AVAILABILITY = YES


// Code Signing Identity
//
// The name ("common name") of a valid code-signing certificate in a keychain within your
Expand Down Expand Up @@ -111,7 +112,6 @@ INSTALL_PATH = $(LOCAL_LIBRARY_DIR)/Frameworks

LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks @loader_path/Frameworks


// Skip Install
//
// Activating this setting when deployment locations are used causes the product to be
Expand Down
973 changes: 396 additions & 577 deletions Example/AppClipExample/AppClipExample.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1400"
LastUpgradeVersion = "1010"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -14,23 +14,23 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "31FBFDF92789135600AB706D"
BlueprintIdentifier = "5172E870AD36F11AEEE0C2B2"
BuildableName = "AppClipExample.app"
BlueprintName = "AppClipExample (iOS)"
BlueprintName = "AppClipExample"
ReferencedContainer = "container:AppClipExample.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "31FBFE062789135600AB706D"
BuildableName = "Tests iOS.xctest"
BlueprintName = "Tests iOS"
BlueprintIdentifier = "F2EAC263F068AD2E112F7309"
BuildableName = "AppClipExampleTestsiOS.xctest"
BlueprintName = "AppClipExampleTests iOS"
ReferencedContainer = "container:AppClipExample.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand All @@ -42,12 +42,23 @@
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F2EAC263F068AD2E112F7309"
BuildableName = "AppClipExampleTestsiOS.xctest"
BlueprintName = "AppClipExampleTests iOS"
ReferencedContainer = "container:AppClipExample.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
disablePerformanceAntipatternChecker = "YES"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand All @@ -58,9 +69,9 @@
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "31FBFDF92789135600AB706D"
BlueprintIdentifier = "5172E870AD36F11AEEE0C2B2"
BuildableName = "AppClipExample.app"
BlueprintName = "AppClipExample (iOS)"
BlueprintName = "AppClipExample"
ReferencedContainer = "container:AppClipExample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
Expand All @@ -75,9 +86,9 @@
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "31FBFDF92789135600AB706D"
BlueprintIdentifier = "5172E870AD36F11AEEE0C2B2"
BuildableName = "AppClipExample.app"
BlueprintName = "AppClipExample (iOS)"
BlueprintName = "AppClipExample"
ReferencedContainer = "container:AppClipExample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1010"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EA48939682BA660D1EF1D35D"
BuildableName = "AppClipExampleClip.app"
BlueprintName = "AppClipExampleClip"
ReferencedContainer = "container:AppClipExample.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BD8DCEDEBC31D1D4301EC40D"
BuildableName = "AppClipExampleClipTests.xctest"
BlueprintName = "AppClipExampleClipTests"
ReferencedContainer = "container:AppClipExample.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CBC19CEADF0880F5CA6B9A7F"
BuildableName = "AppClipExampleClipUITests.xctest"
BlueprintName = "AppClipExampleClipUITests"
ReferencedContainer = "container:AppClipExample.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "BD8DCEDEBC31D1D4301EC40D"
BuildableName = "AppClipExampleClipTests.xctest"
BlueprintName = "AppClipExampleClipTests"
ReferencedContainer = "container:AppClipExample.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CBC19CEADF0880F5CA6B9A7F"
BuildableName = "AppClipExampleClipUITests.xctest"
BlueprintName = "AppClipExampleClipUITests"
ReferencedContainer = "container:AppClipExample.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
disablePerformanceAntipatternChecker = "YES"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EA48939682BA660D1EF1D35D"
BuildableName = "AppClipExampleClip.app"
BlueprintName = "AppClipExampleClip"
ReferencedContainer = "container:AppClipExample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EA48939682BA660D1EF1D35D"
BuildableName = "AppClipExampleClip.app"
BlueprintName = "AppClipExampleClip"
ReferencedContainer = "container:AppClipExample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

This file was deleted.

File renamed without changes.
Loading

0 comments on commit 2a04cc6

Please sign in to comment.