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" : "Icon-App-20x20@2x.png",
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+
}
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+
}

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+
}
Binary file not shown.
Binary file not shown.
Loading
Loading
Loading
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"images" : [
3+
{
4+
"orientation" : "portrait",
5+
"idiom" : "ipad",
6+
"extent" : "full-screen",
7+
"minimum-system-version" : "7.0",
8+
"scale" : "1x"
9+
},
10+
{
11+
"orientation" : "landscape",
12+
"idiom" : "ipad",
13+
"extent" : "full-screen",
14+
"minimum-system-version" : "7.0",
15+
"scale" : "1x"
16+
},
17+
{
18+
"orientation" : "portrait",
19+
"idiom" : "ipad",
20+
"extent" : "full-screen",
21+
"minimum-system-version" : "7.0",
22+
"scale" : "2x"
23+
},
24+
{
25+
"orientation" : "landscape",
26+
"idiom" : "ipad",
27+
"extent" : "full-screen",
28+
"minimum-system-version" : "7.0",
29+
"scale" : "2x"
30+
}
31+
],
32+
"info" : {
33+
"version" : 1,
34+
"author" : "xcode"
35+
}
36+
}

ios/Runner/Info.plist

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@
2222
<string>$(FLUTTER_BUILD_NUMBER)</string>
2323
<key>LSRequiresIPhoneOS</key>
2424
<true/>
25+
<key>NSCameraUsageDescription</key>
26+
<string>I need to access your Camera</string>
27+
<key>NSPhotoLibraryUsageDescription</key>
28+
<string>I need to access your Photo Library</string>
2529
<key>UILaunchStoryboardName</key>
2630
<string>LaunchScreen</string>
2731
<key>UIMainStoryboardFile</key>
2832
<string>Main</string>
2933
<key>UISupportedInterfaceOrientations</key>
3034
<array>
3135
<string>UIInterfaceOrientationPortrait</string>
32-
<string>UIInterfaceOrientationLandscapeLeft</string>
33-
<string>UIInterfaceOrientationLandscapeRight</string>
3436
</array>
3537
<key>UISupportedInterfaceOrientations~ipad</key>
3638
<array>
@@ -43,11 +45,5 @@
4345
<false/>
4446
<key>io.flutter.embedded_views_preview</key>
4547
<true/>
46-
<!-- 拍照选择相册 -->
47-
<key>NSCameraUsageDescription</key>
48-
<string>I need to access your Camera</string>
49-
<key>NSPhotoLibraryUsageDescription</key>
50-
<string>I need to access your Photo Library</string>
51-
<!-- 拍照选择相册 -->
5248
</dict>
5349
</plist>
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// This is a generated file; do not edit or check into version control.
22
FLUTTER_ROOT=/Users/aming/Applications/flutter
33
FLUTTER_APPLICATION_PATH=/Users/aming/testFile/flutter_book
4-
FLUTTER_TARGET=/Users/aming/testFile/flutter_book/lib/main.dart
54
FLUTTER_BUILD_DIR=build
65
FLUTTER_FRAMEWORK_DIR=/Users/aming/Applications/flutter/bin/cache/artifacts/engine/darwin-x64
7-
FLUTTER_BUILD_NAME=1.0.0
8-
FLUTTER_BUILD_NUMBER=1
6+
FLUTTER_BUILD_NAME=1.0.3
7+
FLUTTER_BUILD_NUMBER=1.0.3

0 commit comments

Comments
 (0)