-
Notifications
You must be signed in to change notification settings - Fork 1.5k
chore: Rename FIAM target from InAppMessagingExampleSwift to InAppMessagingExample #1796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,7 @@ | |
|
|
||
| /* Begin PBXFileReference section */ | ||
| 81A2FB070295F56CC0B2D523 /* GoogleService-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; }; | ||
| 8DB25F8B20BE0C29000ABEE2 /* InAppMessagingExampleSwift.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = InAppMessagingExampleSwift.app; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
| 8DB25F8B20BE0C29000ABEE2 /* InAppMessagingExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = InAppMessagingExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
| 8DB25F8E20BE0C29000ABEE2 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; }; | ||
| 8DB25F9020BE0C29000ABEE2 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; }; | ||
| 8DB25F9320BE0C29000ABEE2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; | ||
|
|
@@ -54,7 +54,7 @@ | |
| 8DB25F8C20BE0C29000ABEE2 /* Products */ = { | ||
| isa = PBXGroup; | ||
| children = ( | ||
| 8DB25F8B20BE0C29000ABEE2 /* InAppMessagingExampleSwift.app */, | ||
| 8DB25F8B20BE0C29000ABEE2 /* InAppMessagingExample.app */, | ||
| ); | ||
| name = Products; | ||
| sourceTree = "<group>"; | ||
|
|
@@ -82,9 +82,9 @@ | |
| /* End PBXGroup section */ | ||
|
|
||
| /* Begin PBXNativeTarget section */ | ||
| 8DB25F8A20BE0C29000ABEE2 /* InAppMessagingExampleSwift */ = { | ||
| 8DB25F8A20BE0C29000ABEE2 /* InAppMessagingExample */ = { | ||
| isa = PBXNativeTarget; | ||
| buildConfigurationList = 8DB25F9D20BE0C2A000ABEE2 /* Build configuration list for PBXNativeTarget "InAppMessagingExampleSwift" */; | ||
| buildConfigurationList = 8DB25F9D20BE0C2A000ABEE2 /* Build configuration list for PBXNativeTarget "InAppMessagingExample" */; | ||
| buildPhases = ( | ||
| 8DB25F8720BE0C29000ABEE2 /* Sources */, | ||
| 8DB25F8820BE0C29000ABEE2 /* Frameworks */, | ||
|
|
@@ -94,9 +94,9 @@ | |
| ); | ||
| dependencies = ( | ||
| ); | ||
| name = InAppMessagingExampleSwift; | ||
| name = InAppMessagingExample; | ||
| productName = InAppMessagingExampleSwift; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency with the updated target |
||
| productReference = 8DB25F8B20BE0C29000ABEE2 /* InAppMessagingExampleSwift.app */; | ||
| productReference = 8DB25F8B20BE0C29000ABEE2 /* InAppMessagingExample.app */; | ||
| productType = "com.apple.product-type.application"; | ||
| }; | ||
| /* End PBXNativeTarget section */ | ||
|
|
@@ -132,7 +132,7 @@ | |
| projectDirPath = ""; | ||
| projectRoot = ""; | ||
| targets = ( | ||
| 8DB25F8A20BE0C29000ABEE2 /* InAppMessagingExampleSwift */, | ||
| 8DB25F8A20BE0C29000ABEE2 /* InAppMessagingExample */, | ||
| ); | ||
| }; | ||
| /* End PBXProject section */ | ||
|
|
@@ -347,7 +347,7 @@ | |
| defaultConfigurationIsVisible = 0; | ||
| defaultConfigurationName = Release; | ||
| }; | ||
| 8DB25F9D20BE0C2A000ABEE2 /* Build configuration list for PBXNativeTarget "InAppMessagingExampleSwift" */ = { | ||
| 8DB25F9D20BE0C2A000ABEE2 /* Build configuration list for PBXNativeTarget "InAppMessagingExample" */ = { | ||
| isa = XCConfigurationList; | ||
| buildConfigurations = ( | ||
| 8DB25F9E20BE0C2A000ABEE2 /* Debug */, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <Scheme | ||
| LastUpgradeVersion = "1630" | ||
| version = "1.7"> | ||
| <BuildAction | ||
| parallelizeBuildables = "YES" | ||
| buildImplicitDependencies = "YES" | ||
| buildArchitectures = "Automatic"> | ||
| <BuildActionEntries> | ||
| <BuildActionEntry | ||
| buildForTesting = "YES" | ||
| buildForRunning = "YES" | ||
| buildForProfiling = "YES" | ||
| buildForArchiving = "YES" | ||
| buildForAnalyzing = "YES"> | ||
| <BuildableReference | ||
| BuildableIdentifier = "primary" | ||
| BlueprintIdentifier = "8DB25F8A20BE0C29000ABEE2" | ||
| BuildableName = "InAppMessagingExample.app" | ||
| BlueprintName = "InAppMessagingExample" | ||
| ReferencedContainer = "container:InAppMessagingExample.xcodeproj"> | ||
| </BuildableReference> | ||
| </BuildActionEntry> | ||
| </BuildActionEntries> | ||
| </BuildAction> | ||
| <TestAction | ||
| buildConfiguration = "Debug" | ||
| selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
| selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
| shouldUseLaunchSchemeArgsEnv = "YES" | ||
| shouldAutocreateTestPlan = "YES"> | ||
| </TestAction> | ||
| <LaunchAction | ||
| buildConfiguration = "Debug" | ||
| selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
| selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
| launchStyle = "0" | ||
| useCustomWorkingDirectory = "NO" | ||
| ignoresPersistentStateOnLaunch = "NO" | ||
| debugDocumentVersioning = "YES" | ||
| debugServiceExtension = "internal" | ||
| allowLocationSimulation = "YES"> | ||
| <BuildableProductRunnable | ||
| runnableDebuggingMode = "0"> | ||
| <BuildableReference | ||
| BuildableIdentifier = "primary" | ||
| BlueprintIdentifier = "8DB25F8A20BE0C29000ABEE2" | ||
| BuildableName = "InAppMessagingExample.app" | ||
| BlueprintName = "InAppMessagingExample" | ||
| ReferencedContainer = "container:InAppMessagingExample.xcodeproj"> | ||
| </BuildableReference> | ||
| </BuildableProductRunnable> | ||
| </LaunchAction> | ||
| <ProfileAction | ||
| buildConfiguration = "Release" | ||
| shouldUseLaunchSchemeArgsEnv = "YES" | ||
| savedToolIdentifier = "" | ||
| useCustomWorkingDirectory = "NO" | ||
| debugDocumentVersioning = "YES"> | ||
| <BuildableProductRunnable | ||
| runnableDebuggingMode = "0"> | ||
| <BuildableReference | ||
| BuildableIdentifier = "primary" | ||
| BlueprintIdentifier = "8DB25F8A20BE0C29000ABEE2" | ||
| BuildableName = "InAppMessagingExample.app" | ||
| BlueprintName = "InAppMessagingExample" | ||
| ReferencedContainer = "container:InAppMessagingExample.xcodeproj"> | ||
| </BuildableReference> | ||
| </BuildableProductRunnable> | ||
| </ProfileAction> | ||
| <AnalyzeAction | ||
| buildConfiguration = "Debug"> | ||
| </AnalyzeAction> | ||
| <ArchiveAction | ||
| buildConfiguration = "Release" | ||
| revealArchiveInOrganizer = "YES"> | ||
| </ArchiveAction> | ||
| </Scheme> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing the target
nametoInAppMessagingExamplealso changes the product's module name. TheMain.storyboardfile, however, still has a hardcoded reference to the old module name,InAppMessagingExampleSwift, for theViewController'scustomModuleattribute. This will cause a runtime crash when the app tries to load the view controller from the storyboard because the old module will not be found.To fix this, you need to update
inappmessaging/InAppMessagingExampleSwift/Base.lproj/Main.storyboardand changecustomModule="InAppMessagingExampleSwift"tocustomModule="InAppMessagingExample".