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
1b53f7be
Unverified
Commit
1b53f7be
authored
Sep 22, 2021
by
Jenn Magder
Committed by
GitHub
Sep 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate iOS project to Xcode 13 compatibility (#90304)
parent
5c79a0c2
Changes
56
Hide whitespace changes
Inline
Side-by-side
Showing
56 changed files
with
258 additions
and
82 deletions
+258
-82
project.pbxproj
...marks/complex_layout/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
...arks/macrobenchmarks/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
...arks/microbenchmarks/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
...latform_views_layout/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
...t_hybrid_composition/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
...rks/test_apps/stocks/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
...ation_tests/channels/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
...on_tests/external_ui/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
...ration_tests/flavors/ios/Runner.xcodeproj/project.pbxproj
+2
-2
project.pbxproj
...ests/flutter_gallery/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
..._app_with_extensions/ios/Runner.xcodeproj/project.pbxproj
+1
-1
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
..._platform_view_tests/ios/Runner.xcodeproj/project.pbxproj
+1
-1
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
...n_tests/non_nullable/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
...platform_interaction/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
...s/release_smoke_test/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
...integration_tests/ui/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
dev/manual_tests/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
examples/api/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
examples/flutter_view/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
examples/hello_world/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
examples/image_list/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
examples/layers/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
...les/platform_channel/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
...atform_channel_swift/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
project.pbxproj
examples/platform_view/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
mac.dart
packages/flutter_tools/lib/src/ios/mac.dart
+2
-0
project_object_version_migration.dart
.../src/ios/migrations/project_object_version_migration.dart
+63
-0
xcode_project.dart
packages/flutter_tools/lib/src/xcode_project.dart
+4
-0
Runner.xcscheme
...l/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+3
-7
ios_project_migration_test.dart
...ls/test/general.shard/ios/ios_project_migration_test.dart
+111
-0
project.pbxproj
...gration_test/example/ios/Runner.xcodeproj/project.pbxproj
+2
-2
Runner.xcscheme
...s/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+1
-1
No files found.
dev/benchmarks/complex_layout/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -167,7 +167,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
1
02
0
;
LastUpgradeCheck
=
1
30
0
;
ORGANIZATIONNAME
=
""
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
dev/benchmarks/complex_layout/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
dev/benchmarks/macrobenchmarks/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -166,7 +166,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
091
0
;
LastUpgradeCheck
=
130
0
;
ORGANIZATIONNAME
=
"The Flutter Authors"
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
dev/benchmarks/macrobenchmarks/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"
091
0"
LastUpgradeVersion =
"
130
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
dev/benchmarks/microbenchmarks/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -139,7 +139,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
1
02
0
;
LastUpgradeCheck
=
1
30
0
;
ORGANIZATIONNAME
=
""
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
dev/benchmarks/microbenchmarks/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
dev/benchmarks/platform_views_layout/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -144,7 +144,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
1
02
0
;
LastUpgradeCheck
=
1
30
0
;
ORGANIZATIONNAME
=
""
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
dev/benchmarks/platform_views_layout/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
dev/benchmarks/platform_views_layout_hybrid_composition/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -144,7 +144,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
1
02
0
;
LastUpgradeCheck
=
1
30
0
;
ORGANIZATIONNAME
=
""
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
dev/benchmarks/platform_views_layout_hybrid_composition/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
dev/benchmarks/test_apps/stocks/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -146,7 +146,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
1
02
0
;
LastUpgradeCheck
=
1
30
0
;
ORGANIZATIONNAME
=
"The Flutter Authors"
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
dev/benchmarks/test_apps/stocks/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
dev/integration_tests/channels/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -138,7 +138,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
083
0
;
LastUpgradeCheck
=
130
0
;
ORGANIZATIONNAME
=
"The Flutter Authors"
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
dev/integration_tests/channels/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"
083
0"
LastUpgradeVersion =
"
130
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
dev/integration_tests/external_ui/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -130,7 +130,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
083
0
;
LastUpgradeCheck
=
130
0
;
ORGANIZATIONNAME
=
"The Flutter Authors"
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
dev/integration_tests/external_ui/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"
083
0"
LastUpgradeVersion =
"
130
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
dev/integration_tests/flavors/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -186,7 +186,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
083
0
;
LastUpgradeCheck
=
130
0
;
ORGANIZATIONNAME
=
"The Flutter Authors"
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
dev/integration_tests/flutter_gallery/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -215,7 +215,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
1
02
0
;
LastUpgradeCheck
=
1
30
0
;
ORGANIZATIONNAME
=
"The Flutter Authors"
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
dev/integration_tests/flutter_gallery/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -327,7 +327,7 @@
isa
=
PBXProject
;
attributes
=
{
LastSwiftUpdateCheck
=
1120
;
LastUpgradeCheck
=
1
02
0
;
LastUpgradeCheck
=
1
30
0
;
ORGANIZATIONNAME
=
""
;
TargetAttributes
=
{
49C15B49243E340B0025F804
=
{
...
...
dev/integration_tests/ios_app_with_extensions/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
dev/integration_tests/ios_platform_view_tests/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -138,7 +138,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
1
02
0
;
LastUpgradeCheck
=
1
30
0
;
ORGANIZATIONNAME
=
""
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
dev/integration_tests/ios_platform_view_tests/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
dev/integration_tests/non_nullable/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -135,7 +135,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
1
02
0
;
LastUpgradeCheck
=
1
30
0
;
ORGANIZATIONNAME
=
""
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
dev/integration_tests/non_nullable/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -143,7 +143,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
083
0
;
LastUpgradeCheck
=
130
0
;
ORGANIZATIONNAME
=
"The Flutter Authors"
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
dev/integration_tests/platform_interaction/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"
083
0"
LastUpgradeVersion =
"
130
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
dev/integration_tests/release_smoke_test/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -166,7 +166,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
091
0
;
LastUpgradeCheck
=
130
0
;
ORGANIZATIONNAME
=
"The Flutter Authors"
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
dev/integration_tests/release_smoke_test/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"
091
0"
LastUpgradeVersion =
"
130
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
dev/integration_tests/ui/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -163,7 +163,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
083
0
;
LastUpgradeCheck
=
130
0
;
ORGANIZATIONNAME
=
"The Flutter Authors"
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
dev/integration_tests/ui/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"
083
0"
LastUpgradeVersion =
"
130
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
dev/manual_tests/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -135,7 +135,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
1
02
0
;
LastUpgradeCheck
=
1
30
0
;
ORGANIZATIONNAME
=
"The Flutter Authors"
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
dev/manual_tests/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
examples/api/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -127,7 +127,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
1
02
0
;
LastUpgradeCheck
=
1
30
0
;
ORGANIZATIONNAME
=
""
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
examples/api/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
examples/flutter_view/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -146,7 +146,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
1
02
0
;
LastUpgradeCheck
=
1
30
0
;
ORGANIZATIONNAME
=
"The Flutter Authors"
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
examples/flutter_view/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
examples/hello_world/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -146,7 +146,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
1
02
0
;
LastUpgradeCheck
=
1
30
0
;
ORGANIZATIONNAME
=
"The Flutter Authors"
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
examples/hello_world/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
examples/image_list/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -139,7 +139,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
091
0
;
LastUpgradeCheck
=
130
0
;
ORGANIZATIONNAME
=
"The Flutter Authors"
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
examples/image_list/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"
091
0"
LastUpgradeVersion =
"
130
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
examples/layers/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -138,7 +138,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
1
02
0
;
LastUpgradeCheck
=
1
30
0
;
ORGANIZATIONNAME
=
"The Flutter Authors"
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
examples/layers/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
examples/platform_channel/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -146,7 +146,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
1
02
0
;
LastUpgradeCheck
=
1
30
0
;
ORGANIZATIONNAME
=
"The Flutter Authors"
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
examples/platform_channel/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
examples/platform_channel_swift/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -143,7 +143,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
1
02
0
;
LastUpgradeCheck
=
1
30
0
;
ORGANIZATIONNAME
=
"The Flutter Authors"
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
examples/platform_channel_swift/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
examples/platform_view/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -146,7 +146,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
1
02
0
;
LastUpgradeCheck
=
1
30
0
;
ORGANIZATIONNAME
=
"The Flutter Authors"
;
TargetAttributes
=
{
97C146ED1CF9000F007C117D
=
{
...
...
examples/platform_view/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
packages/flutter_tools/lib/src/ios/mac.dart
View file @
1b53f7be
...
...
@@ -27,6 +27,7 @@ import 'iproxy.dart';
import
'migrations/deployment_target_migration.dart'
;
import
'migrations/project_base_configuration_migration.dart'
;
import
'migrations/project_build_location_migration.dart'
;
import
'migrations/project_object_version_migration.dart'
;
import
'migrations/remove_framework_link_and_embedding_migration.dart'
;
import
'migrations/xcode_build_system_migration.dart'
;
import
'xcode_build_settings.dart'
;
...
...
@@ -110,6 +111,7 @@ Future<XcodeBuildResult> buildXcodeProject({
ProjectBaseConfigurationMigration
(
app
.
project
,
globals
.
logger
),
ProjectBuildLocationMigration
(
app
.
project
,
globals
.
logger
),
DeploymentTargetMigration
(
app
.
project
,
globals
.
logger
),
ProjectObjectVersionMigration
(
app
.
project
,
globals
.
logger
),
];
final
ProjectMigration
migration
=
ProjectMigration
(
migrators
);
...
...
packages/flutter_tools/lib/src/ios/migrations/project_object_version_migration.dart
0 → 100644
View file @
1b53f7be
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'../../base/file_system.dart'
;
import
'../../base/logger.dart'
;
import
'../../base/project_migrator.dart'
;
import
'../../xcode_project.dart'
;
/// Migrate the Xcode project for Xcode 13 compatibility to avoid an "Update to recommended settings" Xcode warning.
class
ProjectObjectVersionMigration
extends
ProjectMigrator
{
ProjectObjectVersionMigration
(
IosProject
project
,
Logger
logger
,
)
:
_xcodeProjectInfoFile
=
project
.
xcodeProjectInfoFile
,
_xcodeProjectSchemeFile
=
project
.
xcodeProjectSchemeFile
,
super
(
logger
);
final
File
_xcodeProjectInfoFile
;
final
File
_xcodeProjectSchemeFile
;
@override
bool
migrate
()
{
if
(
_xcodeProjectInfoFile
.
existsSync
())
{
processFileLines
(
_xcodeProjectInfoFile
);
}
else
{
logger
.
printTrace
(
'Xcode project not found, skipping Xcode compatibility migration.'
);
}
if
(
_xcodeProjectSchemeFile
.
existsSync
())
{
processFileLines
(
_xcodeProjectSchemeFile
);
}
else
{
logger
.
printTrace
(
'Runner scheme not found, skipping Xcode compatibility migration.'
);
}
return
true
;
}
@override
String
?
migrateLine
(
String
line
)
{
String
updatedString
=
line
;
final
Map
<
Pattern
,
String
>
originalToReplacement
=
<
Pattern
,
String
>{
// objectVersion has only been 46 and 50 in the iOS template.
'objectVersion = 46;'
:
'objectVersion = 50;'
,
// LastUpgradeCheck is in the Xcode project file, not scheme file.
// Value has been 0730, 0800, 1020, and 1300 in the template.
RegExp
(
r'LastUpgradeCheck = \d+;'
):
'LastUpgradeCheck = 1300;'
,
// LastUpgradeVersion is in the scheme file, not Xcode project file.
RegExp
(
r'LastUpgradeVersion = "\d+"'
):
'LastUpgradeVersion = "1300"'
,
};
originalToReplacement
.
forEach
((
Pattern
original
,
String
replacement
)
{
if
(
line
.
contains
(
original
))
{
updatedString
=
line
.
replaceAll
(
original
,
replacement
);
if
(!
migrationRequired
&&
updatedString
!=
line
)
{
// Only print once.
logger
.
printStatus
(
'Updating project for Xcode compatibility.'
);
}
}
});
return
updatedString
;
}
}
packages/flutter_tools/lib/src/xcode_project.dart
View file @
1b53f7be
...
...
@@ -37,6 +37,10 @@ abstract class XcodeBasedProject extends FlutterProjectPlatform {
/// The 'project.pbxproj' file of [xcodeProject].
File
get
xcodeProjectInfoFile
=>
xcodeProject
.
childFile
(
'project.pbxproj'
);
/// The 'Runner.xcscheme' file of [xcodeProject].
File
get
xcodeProjectSchemeFile
=>
xcodeProject
.
childDirectory
(
'xcshareddata'
).
childDirectory
(
'xcschemes'
).
childFile
(
'Runner.xcscheme'
);
File
get
xcodeProjectWorkspaceData
=>
xcodeProject
.
childDirectory
(
'project.xcworkspace'
)
...
...
packages/flutter_tools/templates/app_shared/ios-swift.tmpl/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
@@ -27,8 +27,6 @@
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv =
"YES"
>
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier =
"primary"
...
...
@@ -38,8 +36,8 @@
ReferencedContainer =
"container:Runner.xcodeproj"
>
</BuildableReference>
</MacroExpansion>
<
AdditionalOption
s>
</
AdditionalOption
s>
<
Testable
s>
</
Testable
s>
</TestAction>
<LaunchAction
buildConfiguration =
"Debug"
...
...
@@ -61,8 +59,6 @@
ReferencedContainer =
"container:Runner.xcodeproj"
>
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration =
"Profile"
...
...
packages/flutter_tools/test/general.shard/ios/ios_project_migration_test.dart
View file @
1b53f7be
...
...
@@ -9,6 +9,7 @@ import 'package:flutter_tools/src/base/project_migrator.dart';
import
'package:flutter_tools/src/ios/migrations/deployment_target_migration.dart'
;
import
'package:flutter_tools/src/ios/migrations/project_base_configuration_migration.dart'
;
import
'package:flutter_tools/src/ios/migrations/project_build_location_migration.dart'
;
import
'package:flutter_tools/src/ios/migrations/project_object_version_migration.dart'
;
import
'package:flutter_tools/src/ios/migrations/remove_framework_link_and_embedding_migration.dart'
;
import
'package:flutter_tools/src/ios/migrations/xcode_build_system_migration.dart'
;
import
'package:flutter_tools/src/reporting/reporting.dart'
;
...
...
@@ -600,6 +601,113 @@ keep this 3
expect
(
'Updating minimum iOS deployment target from 8.0 to 9.0'
.
allMatches
(
testLogger
.
statusText
).
length
,
1
);
});
});
group
(
'update Xcode project object version'
,
()
{
late
MemoryFileSystem
memoryFileSystem
;
late
BufferLogger
testLogger
;
late
FakeIosProject
project
;
late
File
xcodeProjectInfoFile
;
late
File
xcodeProjectSchemeFile
;
setUp
(()
{
memoryFileSystem
=
MemoryFileSystem
();
testLogger
=
BufferLogger
.
test
();
project
=
FakeIosProject
();
xcodeProjectInfoFile
=
memoryFileSystem
.
file
(
'project.pbxproj'
);
project
.
xcodeProjectInfoFile
=
xcodeProjectInfoFile
;
xcodeProjectSchemeFile
=
memoryFileSystem
.
file
(
'Runner.xcscheme'
);
project
.
xcodeProjectSchemeFile
=
xcodeProjectSchemeFile
;
});
testWithoutContext
(
'skipped if files are missing'
,
()
{
final
ProjectObjectVersionMigration
iosProjectMigration
=
ProjectObjectVersionMigration
(
project
,
testLogger
,
);
expect
(
iosProjectMigration
.
migrate
(),
isTrue
);
expect
(
xcodeProjectInfoFile
.
existsSync
(),
isFalse
);
expect
(
xcodeProjectSchemeFile
.
existsSync
(),
isFalse
);
expect
(
testLogger
.
traceText
,
contains
(
'Xcode project not found, skipping Xcode compatibility migration'
));
expect
(
testLogger
.
traceText
,
contains
(
'Runner scheme not found, skipping Xcode compatibility migration'
));
expect
(
testLogger
.
statusText
,
isEmpty
);
});
testWithoutContext
(
'skipped if nothing to upgrade'
,
()
{
const
String
xcodeProjectInfoFileContents
=
'''
classes = {
};
objectVersion = 50;
objects = {
attributes = {
LastUpgradeCheck = 1300;
ORGANIZATIONNAME = "";
'''
;
xcodeProjectInfoFile
.
writeAsStringSync
(
xcodeProjectInfoFileContents
);
const
String
xcodeProjectSchemeFileContents
=
'''
LastUpgradeVersion = "1300"
'''
;
xcodeProjectSchemeFile
.
writeAsStringSync
(
xcodeProjectSchemeFileContents
);
final
DateTime
projectLastModified
=
xcodeProjectInfoFile
.
lastModifiedSync
();
final
ProjectObjectVersionMigration
iosProjectMigration
=
ProjectObjectVersionMigration
(
project
,
testLogger
,
);
expect
(
iosProjectMigration
.
migrate
(),
isTrue
);
expect
(
xcodeProjectInfoFile
.
lastModifiedSync
(),
projectLastModified
);
expect
(
xcodeProjectInfoFile
.
readAsStringSync
(),
xcodeProjectInfoFileContents
);
expect
(
xcodeProjectSchemeFile
.
readAsStringSync
(),
xcodeProjectSchemeFileContents
);
expect
(
testLogger
.
statusText
,
isEmpty
);
});
testWithoutContext
(
'Xcode project is migrated to Xcode 13'
,
()
{
xcodeProjectInfoFile
.
writeAsStringSync
(
'''
classes = {
};
objectVersion = 46;
objects = {
attributes = {
LastUpgradeCheck = 1020;
ORGANIZATIONNAME = "";
'''
);
xcodeProjectSchemeFile
.
writeAsStringSync
(
'''
<Scheme
LastUpgradeVersion = "1020"
version = "1.3">
'''
);
final
ProjectObjectVersionMigration
iosProjectMigration
=
ProjectObjectVersionMigration
(
project
,
testLogger
,
);
expect
(
iosProjectMigration
.
migrate
(),
isTrue
);
expect
(
xcodeProjectInfoFile
.
readAsStringSync
(),
'''
classes = {
};
objectVersion = 50;
objects = {
attributes = {
LastUpgradeCheck = 1300;
ORGANIZATIONNAME = "";
'''
);
expect
(
xcodeProjectSchemeFile
.
readAsStringSync
(),
'''
<Scheme
LastUpgradeVersion = "1300"
version = "1.3">
'''
);
// Only print once even though 3 lines were changed.
expect
(
'Updating project for Xcode compatibility'
.
allMatches
(
testLogger
.
statusText
).
length
,
1
);
});
});
});
}
...
...
@@ -613,6 +721,9 @@ class FakeIosProject extends Fake implements IosProject {
@override
File
xcodeProjectInfoFile
=
MemoryFileSystem
.
test
().
file
(
'xcodeProjectInfoFile'
);
@override
File
xcodeProjectSchemeFile
=
MemoryFileSystem
.
test
().
file
(
'xcodeProjectSchemeFile'
);
@override
File
appFrameworkInfoPlist
=
MemoryFileSystem
.
test
().
file
(
'appFrameworkInfoPlist'
);
}
...
...
packages/integration_test/example/ios/Runner.xcodeproj/project.pbxproj
View file @
1b53f7be
...
...
@@ -3,7 +3,7 @@
archiveVersion
=
1
;
classes
=
{
};
objectVersion
=
46
;
objectVersion
=
50
;
objects
=
{
/* Begin PBXBuildFile section */
...
...
@@ -228,7 +228,7 @@
97C146E61CF9000F007C117D
/* Project object */
=
{
isa
=
PBXProject
;
attributes
=
{
LastUpgradeCheck
=
1
02
0
;
LastUpgradeCheck
=
1
30
0
;
ORGANIZATIONNAME
=
"The Chromium Authors"
;
TargetAttributes
=
{
769541C723A0351900E5C350
=
{
...
...
packages/integration_test/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
View file @
1b53f7be
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion =
"1
02
0"
LastUpgradeVersion =
"1
30
0"
version =
"1.3"
>
<BuildAction
parallelizeBuildables =
"YES"
...
...
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