Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
9b1ed463
Unverified
Commit
9b1ed463
authored
Aug 12, 2021
by
Jenn Magder
Committed by
GitHub
Aug 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update flutter create templates for Xcode 13 (#88074)
parent
16b5af9b
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
102 additions
and
47 deletions
+102
-47
project.pbxproj.tmpl
...hared/ios-objc.tmpl/Runner.xcodeproj/project.pbxproj.tmpl
+14
-6
Runner.xcscheme
...l/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+3
-7
project.pbxproj.tmpl
...ared/ios-swift.tmpl/Runner.xcodeproj/project.pbxproj.tmpl
+16
-6
Runner.xcscheme
...l/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+3
-7
project.pbxproj.tmpl
...p_shared/macos.tmpl/Runner.xcodeproj/project.pbxproj.tmpl
+1
-1
Runner.xcscheme.tmpl
...ner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme.tmpl
+3
-5
project.pbxproj.tmpl
..._app_ephemeral/Runner.xcodeproj.tmpl/project.pbxproj.tmpl
+15
-6
Runner.xcscheme
...ner.xcodeproj.tmpl/xcshareddata/xcschemes/Runner.xcscheme
+3
-7
create_test.dart
...tter_tools/test/commands.shard/permeable/create_test.dart
+44
-2
No files found.
packages/flutter_tools/templates/app_shared/ios-objc.tmpl/Runner.xcodeproj/project.pbxproj.tmpl
View file @
9b1ed463
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
archiveVersion = 1;
archiveVersion = 1;
classes = {
classes = {
};
};
objectVersion =
46
;
objectVersion =
50
;
objects = {
objects = {
/* Begin PBXBuildFile section */
/* Begin PBXBuildFile section */
...
@@ -74,7 +74,6 @@
...
@@ -74,7 +74,6 @@
9740EEB11CF90186004384FC /* Flutter */,
9740EEB11CF90186004384FC /* Flutter */,
97C146F01CF9000F007C117D /* Runner */,
97C146F01CF9000F007C117D /* Runner */,
97C146EF1CF9000F007C117D /* Products */,
97C146EF1CF9000F007C117D /* Products */,
CF3B75C9A7D2FA2A4C99F110 /* Frameworks */,
);
);
sourceTree = "<group>";
sourceTree = "<group>";
};
};
...
@@ -139,7 +138,7 @@
...
@@ -139,7 +138,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
isa = PBXProject;
attributes = {
attributes = {
LastUpgradeCheck = 1
02
0;
LastUpgradeCheck = 1
30
0;
ORGANIZATIONNAME = "";
ORGANIZATIONNAME = "";
TargetAttributes = {
TargetAttributes = {
97C146ED1CF9000F007C117D = {
97C146ED1CF9000F007C117D = {
...
@@ -301,7 +300,10 @@
...
@@ -301,7 +300,10 @@
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = {{iosIdentifier}};
PRODUCT_BUNDLE_IDENTIFIER = {{iosIdentifier}};
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = "$(TARGET_NAME)";
VERSIONING_SYSTEM = "apple-generic";
VERSIONING_SYSTEM = "apple-generic";
...
@@ -421,7 +423,10 @@
...
@@ -421,7 +423,10 @@
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = {{iosIdentifier}};
PRODUCT_BUNDLE_IDENTIFIER = {{iosIdentifier}};
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = "$(TARGET_NAME)";
VERSIONING_SYSTEM = "apple-generic";
VERSIONING_SYSTEM = "apple-generic";
...
@@ -436,7 +441,10 @@
...
@@ -436,7 +441,10 @@
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = {{iosIdentifier}};
PRODUCT_BUNDLE_IDENTIFIER = {{iosIdentifier}};
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = "$(TARGET_NAME)";
VERSIONING_SYSTEM = "apple-generic";
VERSIONING_SYSTEM = "apple-generic";
...
...
packages/flutter_tools/templates/app_shared/ios-objc.tmpl/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
9b1ed463
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
version =
"1.3"
>
<BuildAction
<BuildAction
parallelizeBuildables =
"YES"
parallelizeBuildables =
"YES"
...
@@ -27,8 +27,6 @@
...
@@ -27,8 +27,6 @@
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv =
"YES"
>
shouldUseLaunchSchemeArgsEnv =
"YES"
>
<Testables>
</Testables>
<MacroExpansion>
<MacroExpansion>
<BuildableReference
<BuildableReference
BuildableIdentifier =
"primary"
BuildableIdentifier =
"primary"
...
@@ -38,8 +36,8 @@
...
@@ -38,8 +36,8 @@
ReferencedContainer =
"container:Runner.xcodeproj"
>
ReferencedContainer =
"container:Runner.xcodeproj"
>
</BuildableReference>
</BuildableReference>
</MacroExpansion>
</MacroExpansion>
<
AdditionalOption
s>
<
Testable
s>
</
AdditionalOption
s>
</
Testable
s>
</TestAction>
</TestAction>
<LaunchAction
<LaunchAction
buildConfiguration =
"Debug"
buildConfiguration =
"Debug"
...
@@ -61,8 +59,6 @@
...
@@ -61,8 +59,6 @@
ReferencedContainer =
"container:Runner.xcodeproj"
>
ReferencedContainer =
"container:Runner.xcodeproj"
>
</BuildableReference>
</BuildableReference>
</BuildableProductRunnable>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
</LaunchAction>
<ProfileAction
<ProfileAction
buildConfiguration =
"Profile"
buildConfiguration =
"Profile"
...
...
packages/flutter_tools/templates/app_shared/ios-swift.tmpl/Runner.xcodeproj/project.pbxproj.tmpl
View file @
9b1ed463
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
archiveVersion = 1;
archiveVersion = 1;
classes = {
classes = {
};
};
objectVersion =
46
;
objectVersion =
50
;
objects = {
objects = {
/* Begin PBXBuildFile section */
/* Begin PBXBuildFile section */
...
@@ -127,7 +127,7 @@
...
@@ -127,7 +127,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
isa = PBXProject;
attributes = {
attributes = {
LastUpgradeCheck = 1
02
0;
LastUpgradeCheck = 1
30
0;
ORGANIZATIONNAME = "";
ORGANIZATIONNAME = "";
TargetAttributes = {
TargetAttributes = {
97C146ED1CF9000F007C117D = {
97C146ED1CF9000F007C117D = {
...
@@ -290,7 +290,10 @@
...
@@ -290,7 +290,10 @@
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = {{iosIdentifier}};
PRODUCT_BUNDLE_IDENTIFIER = {{iosIdentifier}};
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
...
@@ -399,7 +402,8 @@
...
@@ -399,7 +402,8 @@
MTL_ENABLE_DEBUG_INFO = NO;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
SUPPORTED_PLATFORMS = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
TARGETED_DEVICE_FAMILY = "1,2";
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
VALIDATE_PRODUCT = YES;
};
};
...
@@ -414,7 +418,10 @@
...
@@ -414,7 +418,10 @@
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = {{iosIdentifier}};
PRODUCT_BUNDLE_IDENTIFIER = {{iosIdentifier}};
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
...
@@ -433,7 +440,10 @@
...
@@ -433,7 +440,10 @@
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
ENABLE_BITCODE = NO;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = {{iosIdentifier}};
PRODUCT_BUNDLE_IDENTIFIER = {{iosIdentifier}};
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
...
...
packages/flutter_tools/templates/app_shared/ios.tmpl/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
9b1ed463
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
version =
"1.3"
>
<BuildAction
<BuildAction
parallelizeBuildables =
"YES"
parallelizeBuildables =
"YES"
...
@@ -27,8 +27,6 @@
...
@@ -27,8 +27,6 @@
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv =
"YES"
>
shouldUseLaunchSchemeArgsEnv =
"YES"
>
<Testables>
</Testables>
<MacroExpansion>
<MacroExpansion>
<BuildableReference
<BuildableReference
BuildableIdentifier =
"primary"
BuildableIdentifier =
"primary"
...
@@ -38,8 +36,8 @@
...
@@ -38,8 +36,8 @@
ReferencedContainer =
"container:Runner.xcodeproj"
>
ReferencedContainer =
"container:Runner.xcodeproj"
>
</BuildableReference>
</BuildableReference>
</MacroExpansion>
</MacroExpansion>
<
AdditionalOption
s>
<
Testable
s>
</
AdditionalOption
s>
</
Testable
s>
</TestAction>
</TestAction>
<LaunchAction
<LaunchAction
buildConfiguration =
"Debug"
buildConfiguration =
"Debug"
...
@@ -61,8 +59,6 @@
...
@@ -61,8 +59,6 @@
ReferencedContainer =
"container:Runner.xcodeproj"
>
ReferencedContainer =
"container:Runner.xcodeproj"
>
</BuildableReference>
</BuildableReference>
</BuildableProductRunnable>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
</LaunchAction>
<ProfileAction
<ProfileAction
buildConfiguration =
"Profile"
buildConfiguration =
"Profile"
...
...
packages/flutter_tools/templates/app_shared/macos.tmpl/Runner.xcodeproj/project.pbxproj.tmpl
View file @
9b1ed463
...
@@ -182,7 +182,7 @@
...
@@ -182,7 +182,7 @@
isa = PBXProject;
isa = PBXProject;
attributes = {
attributes = {
LastSwiftUpdateCheck = 0920;
LastSwiftUpdateCheck = 0920;
LastUpgradeCheck =
093
0;
LastUpgradeCheck =
130
0;
ORGANIZATIONNAME = "";
ORGANIZATIONNAME = "";
TargetAttributes = {
TargetAttributes = {
33CC10EC2044A3C60003C045 = {
33CC10EC2044A3C60003C045 = {
...
...
packages/flutter_tools/templates/app_shared/macos.tmpl/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme.tmpl
View file @
9b1ed463
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
<Scheme
LastUpgradeVersion =
"1
0
00"
LastUpgradeVersion =
"1
3
00"
version =
"1.3"
>
version =
"1.3"
>
<BuildAction
<BuildAction
parallelizeBuildables =
"YES"
parallelizeBuildables =
"YES"
...
@@ -36,8 +36,8 @@
...
@@ -36,8 +36,8 @@
ReferencedContainer =
"container:Runner.xcodeproj"
>
ReferencedContainer =
"container:Runner.xcodeproj"
>
</BuildableReference>
</BuildableReference>
</MacroExpansion>
</MacroExpansion>
<
AdditionalOption
s>
<
Testable
s>
</
AdditionalOption
s>
</
Testable
s>
</TestAction>
</TestAction>
<LaunchAction
<LaunchAction
buildConfiguration =
"Debug"
buildConfiguration =
"Debug"
...
@@ -59,8 +59,6 @@
...
@@ -59,8 +59,6 @@
ReferencedContainer =
"container:Runner.xcodeproj"
>
ReferencedContainer =
"container:Runner.xcodeproj"
>
</BuildableReference>
</BuildableReference>
</BuildableProductRunnable>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
</LaunchAction>
<ProfileAction
<ProfileAction
buildConfiguration =
"Profile"
buildConfiguration =
"Profile"
...
...
packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.xcodeproj.tmpl/project.pbxproj.tmpl
View file @
9b1ed463
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
archiveVersion = 1;
archiveVersion = 1;
classes = {
classes = {
};
};
objectVersion =
46
;
objectVersion =
50
;
objects = {
objects = {
/* Begin PBXBuildFile section */
/* Begin PBXBuildFile section */
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
7497404A213559E7008C567A /* Flutter.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Flutter.xcconfig; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
/* Begin PBXFrameworksBuildPhase section */
...
@@ -139,7 +140,7 @@
...
@@ -139,7 +140,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
isa = PBXProject;
attributes = {
attributes = {
LastUpgradeCheck = 1
02
0;
LastUpgradeCheck = 1
30
0;
ORGANIZATIONNAME = "";
ORGANIZATIONNAME = "";
TargetAttributes = {
TargetAttributes = {
97C146ED1CF9000F007C117D = {
97C146ED1CF9000F007C117D = {
...
@@ -298,7 +299,10 @@
...
@@ -298,7 +299,10 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = {{iosIdentifier}};
PRODUCT_BUNDLE_IDENTIFIER = {{iosIdentifier}};
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = "$(TARGET_NAME)";
VERSIONING_SYSTEM = "apple-generic";
VERSIONING_SYSTEM = "apple-generic";
...
@@ -417,7 +421,10 @@
...
@@ -417,7 +421,10 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = {{iosIdentifier}};
PRODUCT_BUNDLE_IDENTIFIER = {{iosIdentifier}};
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = "$(TARGET_NAME)";
VERSIONING_SYSTEM = "apple-generic";
VERSIONING_SYSTEM = "apple-generic";
...
@@ -431,7 +438,10 @@
...
@@ -431,7 +438,10 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = {{iosIdentifier}};
PRODUCT_BUNDLE_IDENTIFIER = {{iosIdentifier}};
PRODUCT_NAME = "$(TARGET_NAME)";
PRODUCT_NAME = "$(TARGET_NAME)";
VERSIONING_SYSTEM = "apple-generic";
VERSIONING_SYSTEM = "apple-generic";
...
@@ -462,7 +472,6 @@
...
@@ -462,7 +472,6 @@
defaultConfigurationName = Release;
defaultConfigurationName = Release;
};
};
/* End XCConfigurationList section */
/* End XCConfigurationList section */
};
};
rootObject = 97C146E61CF9000F007C117D /* Project object */;
rootObject = 97C146E61CF9000F007C117D /* Project object */;
}
}
packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.xcodeproj.tmpl/xcshareddata/xcschemes/Runner.xcscheme
View file @
9b1ed463
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
version =
"1.3"
>
<BuildAction
<BuildAction
parallelizeBuildables =
"YES"
parallelizeBuildables =
"YES"
...
@@ -27,8 +27,6 @@
...
@@ -27,8 +27,6 @@
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv =
"YES"
>
shouldUseLaunchSchemeArgsEnv =
"YES"
>
<Testables>
</Testables>
<MacroExpansion>
<MacroExpansion>
<BuildableReference
<BuildableReference
BuildableIdentifier =
"primary"
BuildableIdentifier =
"primary"
...
@@ -38,8 +36,8 @@
...
@@ -38,8 +36,8 @@
ReferencedContainer =
"container:Runner.xcodeproj"
>
ReferencedContainer =
"container:Runner.xcodeproj"
>
</BuildableReference>
</BuildableReference>
</MacroExpansion>
</MacroExpansion>
<
AdditionalOption
s>
<
Testable
s>
</
AdditionalOption
s>
</
Testable
s>
</TestAction>
</TestAction>
<LaunchAction
<LaunchAction
buildConfiguration =
"Debug"
buildConfiguration =
"Debug"
...
@@ -61,8 +59,6 @@
...
@@ -61,8 +59,6 @@
ReferencedContainer =
"container:Runner.xcodeproj"
>
ReferencedContainer =
"container:Runner.xcodeproj"
>
</BuildableReference>
</BuildableReference>
</BuildableProductRunnable>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
</LaunchAction>
<ProfileAction
<ProfileAction
buildConfiguration =
"Profile"
buildConfiguration =
"Profile"
...
...
packages/flutter_tools/test/commands.shard/permeable/create_test.dart
View file @
9b1ed463
...
@@ -1214,6 +1214,7 @@ void main() {
...
@@ -1214,6 +1214,7 @@ void main() {
final
File
xcodeProjectFile
=
globals
.
fs
.
file
(
globals
.
fs
.
path
.
join
(
projectDir
.
path
,
xcodeProjectPath
));
final
File
xcodeProjectFile
=
globals
.
fs
.
file
(
globals
.
fs
.
path
.
join
(
projectDir
.
path
,
xcodeProjectPath
));
final
String
xcodeProject
=
xcodeProjectFile
.
readAsStringSync
();
final
String
xcodeProject
=
xcodeProjectFile
.
readAsStringSync
();
expect
(
xcodeProject
,
contains
(
'PRODUCT_BUNDLE_IDENTIFIER = com.foo.bar.flutterProject'
));
expect
(
xcodeProject
,
contains
(
'PRODUCT_BUNDLE_IDENTIFIER = com.foo.bar.flutterProject'
));
expect
(
xcodeProject
,
contains
(
'LastUpgradeCheck = 1300;'
));
// Xcode workspace shared data
// Xcode workspace shared data
final
Directory
workspaceSharedData
=
globals
.
fs
.
directory
(
globals
.
fs
.
path
.
join
(
'.ios'
,
'Runner.xcworkspace'
,
'xcshareddata'
));
final
Directory
workspaceSharedData
=
globals
.
fs
.
directory
(
globals
.
fs
.
path
.
join
(
'.ios'
,
'Runner.xcworkspace'
,
'xcshareddata'
));
expectExists
(
workspaceSharedData
.
childFile
(
'WorkspaceSettings.xcsettings'
).
path
);
expectExists
(
workspaceSharedData
.
childFile
(
'WorkspaceSettings.xcsettings'
).
path
);
...
@@ -1247,7 +1248,7 @@ void main() {
...
@@ -1247,7 +1248,7 @@ void main() {
Platform:
_kNoColorTerminalPlatform
,
Platform:
_kNoColorTerminalPlatform
,
});
});
testUsingContext
(
'has correct content and formatting with app template'
,
()
async
{
testUsingContext
(
'has correct
default
content and formatting with app template'
,
()
async
{
Cache
.
flutterRoot
=
'../..'
;
Cache
.
flutterRoot
=
'../..'
;
final
CreateCommand
command
=
CreateCommand
();
final
CreateCommand
command
=
CreateCommand
();
...
@@ -1287,12 +1288,13 @@ void main() {
...
@@ -1287,12 +1288,13 @@ void main() {
expect
(
xcodeConfig
,
contains
(
'FLUTTER_ROOT='
));
expect
(
xcodeConfig
,
contains
(
'FLUTTER_ROOT='
));
expect
(
xcodeConfig
,
contains
(
'FLUTTER_APPLICATION_PATH='
));
expect
(
xcodeConfig
,
contains
(
'FLUTTER_APPLICATION_PATH='
));
expect
(
xcodeConfig
,
contains
(
'COCOAPODS_PARALLEL_CODE_SIGN=true'
));
expect
(
xcodeConfig
,
contains
(
'COCOAPODS_PARALLEL_CODE_SIGN=true'
));
//
App identification
//
Xcode project
final
String
xcodeProjectPath
=
globals
.
fs
.
path
.
join
(
'ios'
,
'Runner.xcodeproj'
,
'project.pbxproj'
);
final
String
xcodeProjectPath
=
globals
.
fs
.
path
.
join
(
'ios'
,
'Runner.xcodeproj'
,
'project.pbxproj'
);
expectExists
(
xcodeProjectPath
);
expectExists
(
xcodeProjectPath
);
final
File
xcodeProjectFile
=
globals
.
fs
.
file
(
globals
.
fs
.
path
.
join
(
projectDir
.
path
,
xcodeProjectPath
));
final
File
xcodeProjectFile
=
globals
.
fs
.
file
(
globals
.
fs
.
path
.
join
(
projectDir
.
path
,
xcodeProjectPath
));
final
String
xcodeProject
=
xcodeProjectFile
.
readAsStringSync
();
final
String
xcodeProject
=
xcodeProjectFile
.
readAsStringSync
();
expect
(
xcodeProject
,
contains
(
'PRODUCT_BUNDLE_IDENTIFIER = com.foo.bar.flutterProject'
));
expect
(
xcodeProject
,
contains
(
'PRODUCT_BUNDLE_IDENTIFIER = com.foo.bar.flutterProject'
));
expect
(
xcodeProject
,
contains
(
'LastUpgradeCheck = 1300;'
));
// Xcode workspace shared data
// Xcode workspace shared data
final
Directory
workspaceSharedData
=
globals
.
fs
.
directory
(
globals
.
fs
.
path
.
join
(
'ios'
,
'Runner.xcworkspace'
,
'xcshareddata'
));
final
Directory
workspaceSharedData
=
globals
.
fs
.
directory
(
globals
.
fs
.
path
.
join
(
'ios'
,
'Runner.xcworkspace'
,
'xcshareddata'
));
expectExists
(
workspaceSharedData
.
childFile
(
'WorkspaceSettings.xcsettings'
).
path
);
expectExists
(
workspaceSharedData
.
childFile
(
'WorkspaceSettings.xcsettings'
).
path
);
...
@@ -1325,6 +1327,46 @@ void main() {
...
@@ -1325,6 +1327,46 @@ void main() {
Platform:
_kNoColorTerminalPlatform
,
Platform:
_kNoColorTerminalPlatform
,
});
});
testUsingContext
(
'has correct content and formatting with macOS app template'
,
()
async
{
Cache
.
flutterRoot
=
'../..'
;
final
CreateCommand
command
=
CreateCommand
();
final
CommandRunner
<
void
>
runner
=
createTestCommandRunner
(
command
);
await
runner
.
run
(<
String
>[
'create'
,
'--template=app'
,
'--platforms=macos'
,
'--no-pub'
,
'--org'
,
'com.foo.bar'
,
projectDir
.
path
]);
void
expectExists
(
String
relPath
)
{
expect
(
globals
.
fs
.
isFileSync
(
'
${projectDir.path}
/
$relPath
'
),
true
);
}
// Generated Xcode settings
final
String
macosXcodeConfigPath
=
globals
.
fs
.
path
.
join
(
'macos'
,
'Runner'
,
'Configs'
,
'AppInfo.xcconfig'
);
expectExists
(
macosXcodeConfigPath
);
final
File
macosXcodeConfigFile
=
globals
.
fs
.
file
(
globals
.
fs
.
path
.
join
(
projectDir
.
path
,
macosXcodeConfigPath
));
final
String
macosXcodeConfig
=
macosXcodeConfigFile
.
readAsStringSync
();
expect
(
macosXcodeConfig
,
contains
(
'PRODUCT_NAME = flutter_project'
));
expect
(
macosXcodeConfig
,
contains
(
'PRODUCT_BUNDLE_IDENTIFIER = com.foo.bar.flutterProject'
));
expect
(
macosXcodeConfig
,
contains
(
'PRODUCT_COPYRIGHT ='
));
// Xcode project
final
String
xcodeProjectPath
=
globals
.
fs
.
path
.
join
(
'macos'
,
'Runner.xcodeproj'
,
'project.pbxproj'
);
expectExists
(
xcodeProjectPath
);
final
File
xcodeProjectFile
=
globals
.
fs
.
file
(
globals
.
fs
.
path
.
join
(
projectDir
.
path
,
xcodeProjectPath
));
final
String
xcodeProject
=
xcodeProjectFile
.
readAsStringSync
();
expect
(
xcodeProject
,
contains
(
'path = "flutter_project.app";'
));
expect
(
xcodeProject
,
contains
(
'LastUpgradeCheck = 1300;'
));
// Xcode workspace shared data
final
Directory
workspaceSharedData
=
globals
.
fs
.
directory
(
globals
.
fs
.
path
.
join
(
'macos'
,
'Runner.xcworkspace'
,
'xcshareddata'
));
expectExists
(
workspaceSharedData
.
childFile
(
'IDEWorkspaceChecks.plist'
).
path
);
// Xcode project shared data
final
Directory
projectSharedData
=
globals
.
fs
.
directory
(
globals
.
fs
.
path
.
join
(
'macos'
,
'Runner.xcodeproj'
,
'project.xcworkspace'
,
'xcshareddata'
));
expectExists
(
projectSharedData
.
childFile
(
'IDEWorkspaceChecks.plist'
).
path
);
},
overrides:
<
Type
,
Generator
>{
Platform:
_kNoColorTerminalPlatform
,
FeatureFlags:
()
=>
TestFeatureFlags
(
isMacOSEnabled:
true
),
});
testUsingContext
(
'has correct application id for android, bundle id for ios and application id for Linux'
,
()
async
{
testUsingContext
(
'has correct application id for android, bundle id for ios and application id for Linux'
,
()
async
{
Cache
.
flutterRoot
=
'../..'
;
Cache
.
flutterRoot
=
'../..'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment