Skip to content

Commit 71a15cf

Browse files
committed
解决iOS打包构建错误
1 parent 71de696 commit 71a15cf

File tree

18 files changed

+87
-25
lines changed

18 files changed

+87
-25
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<h1 align="center">Flutter book App</h1>
2-
<h2 align="center">使用Flutter 1.9.1+hotfix.2,如果不能运行请检查你的Flutter版本</h2>
2+
<h2 align="center">使用Flutter 1.9.1+hotfix.6,如果不能运行请检查你的Flutter版本</h2>
33

44
## 安卓APK下载
55
<p align="center">
@@ -62,7 +62,7 @@ dev_dependencies:
6262
### `Ubuntu18`
6363

6464
```bash
65-
Flutter 1.7.8+hotfix.3 • channel master • https://github.com/flutter/flutter.git
65+
Flutter 1.9.1+hotfix.6 • channel master • https://github.com/flutter/flutter.git
6666
Framework • revision b76a1e8312 (11 days ago) • 2019-05-13 09:06:30 +0100
6767
Engine • revision 816d3fc586
6868
Tools • Dart 2.3.1 (build 2.3.1-dev.0.0 a0290f823c)
@@ -71,7 +71,7 @@ Tools • Dart 2.3.1 (build 2.3.1-dev.0.0 a0290f823c)
7171
### `Windows10`
7272

7373
```bash
74-
Flutter 1.7.8+hotfix.3 • channel stable • https://github.com/flutter/flutter.git
74+
Flutter 1.9.1+hotfix.6 • channel stable • https://github.com/flutter/flutter.git
7575
Framework • revision b593f5167b (5 weeks ago) • 2019-04-22 07:51:33 -0700
7676
Engine • revision ca31a7c57b
7777
Tools • Dart 2.3.0 (build 2.3.0-dev.0.1 cf4444b803)
@@ -80,7 +80,7 @@ Tools • Dart 2.3.0 (build 2.3.0-dev.0.1 cf4444b803)
8080
## `MacOS`
8181

8282
```bash
83-
[✓] Flutter (Channel stable, v1.9.1+hotfix.2, on Mac OS X 10.14.6 18G87, locale zh-Hans-CN)
83+
[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.14.6 18G87, locale zh-Hans-CN)
8484
• Flutter version 1.9.1+hotfix.2 at /Users/aming/Applications/flutter
8585
• Framework revision 2d2a1ffec9 (2 weeks ago), 2019-09-06 18:39:49 -0700
8686
• Engine revision b863200c37

ios/Flutter/flutter_export_environment.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export "FLUTTER_APPLICATION_PATH=/Users/aming/testFile/flutter_book"
55
export "FLUTTER_TARGET=/Users/aming/testFile/flutter_book/lib/main.dart"
66
export "FLUTTER_BUILD_DIR=build"
77
export "SYMROOT=${SOURCE_ROOT}/../build/ios"
8-
export "FLUTTER_FRAMEWORK_DIR=/Users/aming/Applications/flutter/bin/cache/artifacts/engine/ios-release"
8+
export "FLUTTER_FRAMEWORK_DIR=/Users/aming/Applications/flutter/bin/cache/artifacts/engine/ios"
99
export "FLUTTER_BUILD_NAME=1.0.3"
1010
export "FLUTTER_BUILD_NUMBER=1.0.3"
11+
export "TRACK_WIDGET_CREATION=true"

ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ PODS:
1616
- Flutter
1717

1818
DEPENDENCIES:
19-
- Flutter (from `.symlinks/flutter/ios-release`)
19+
- Flutter (from `.symlinks/flutter/ios`)
2020
- fluwx (from `.symlinks/plugins/fluwx/ios`)
2121
- image_cropper (from `.symlinks/plugins/image_cropper/ios`)
2222
- image_picker (from `.symlinks/plugins/image_picker/ios`)
@@ -30,7 +30,7 @@ SPEC REPOS:
3030

3131
EXTERNAL SOURCES:
3232
Flutter:
33-
:path: ".symlinks/flutter/ios-release"
33+
:path: ".symlinks/flutter/ios"
3434
fluwx:
3535
:path: ".symlinks/plugins/fluwx/ios"
3636
image_cropper:

ios/Runner.xcodeproj/project.pbxproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
1929B8D7C589A6D4FE720ABB /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
4646
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
4747
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
48-
47BBA0A32338C69A0030BC3F /* launch_image.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = launch_image.png; path = ../../../../Desktop/launch_image.png; sourceTree = "<group>"; };
48+
47BBA0A32338C69A0030BC3F /* launch_image.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = launch_image.png; path = "../../android/app/src/main/res/mipmap-xxxhdpi/launch_image.png"; sourceTree = "<group>"; };
4949
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
5050
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
5151
7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
@@ -396,6 +396,7 @@
396396
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
397397
buildSettings = {
398398
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
399+
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
399400
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
400401
DEVELOPMENT_TEAM = XXB3A2BN5T;
401402
ENABLE_BITCODE = NO;
@@ -522,6 +523,7 @@
522523
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
523524
buildSettings = {
524525
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
526+
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
525527
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
526528
DEVELOPMENT_TEAM = XXB3A2BN5T;
527529
ENABLE_BITCODE = NO;
@@ -546,6 +548,7 @@
546548
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
547549
buildSettings = {
548550
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
551+
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
549552
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
550553
DEVELOPMENT_TEAM = XXB3A2BN5T;
551554
ENABLE_BITCODE = NO;

ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"size" : "20x20",
55
"idiom" : "iphone",
6-
"filename" : "[email protected]",
6+
"filename" : "Icon-App-20x20@2x-1.png",
77
"scale" : "2x"
88
},
99
{
@@ -119,4 +119,4 @@
119119
"version" : 1,
120120
"author" : "xcode"
121121
}
122-
}
122+
}
1.25 KB
Loading
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
}
6+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"filename" : "LaunchImage.png",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"version" : 1,
19+
"author" : "xcode"
20+
}
21+
}
File renamed without changes.

ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
"images" : [
33
{
44
"idiom" : "universal",
5-
"filename" : "LaunchImage.png",
5+
"filename" : "launch_image.png",
66
"scale" : "1x"
77
},
88
{
99
"idiom" : "universal",
10-
"filename" : "LaunchImage@2x.png",
10+
"filename" : "launch_image-1.png",
1111
"scale" : "2x"
1212
},
1313
{
1414
"idiom" : "universal",
15-
"filename" : "LaunchImage@3x.png",
15+
"filename" : "launch_image-2.png",
1616
"scale" : "3x"
1717
}
1818
],
1919
"info" : {
2020
"version" : 1,
2121
"author" : "xcode"
2222
}
23-
}
23+
}

0 commit comments

Comments
 (0)