Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
appframe
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 81b73f5b
authored
2025-12-02 10:10:26 +0800
by
Administrator
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ios编译
1 parent
97ac92bf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
3 deletions
README.md
ios/Podfile
ios/Runner/Info.plist
macos/Flutter/GeneratedPluginRegistrant.swift
README.md
View file @
81b73f5
...
...
@@ -11,6 +11,10 @@ flutter run -d 00008030-001C75810E42402E --release
flutter run -d 00008140-001068C93AB8801C --release
flutter build ipa --export-method ad-hoc
flutter build ipa --export-method ad-hoc --build-name=1.0.0 --build-number=1
### 未曾测试
export PUB_HOSTED_URL=https://pub.flutter-io.cn
...
...
@@ -62,6 +66,21 @@ pod cache clean --all
# 注意:这一步可能比较慢,因为 ffmpeg 库非常大(几百MB),请保持网络通畅
pod install --repo-update
#显示安装日志
pod install --verbose
# 6. 回到根目录
cd ..
flutter build ios --build-number=2511061
### iOS 包下载问题
# 先手动下载到本地
cd ~/Downloads
git clone https://gitee.com/mirrors/DKImagePickerController.git --branch 4.3.9
# 然后在 Podfile 中修改
# 在 ios/Podfile 中添加:
pod 'DKImagePickerController', :path => '~/Downloads/DKImagePickerController'
ios/Podfile
View file @
81b73f5
...
...
@@ -26,12 +26,17 @@ end
require
File
.
expand_path
(
File
.
join
(
'packages'
,
'flutter_tools'
,
'bin'
,
'podhelper'
),
flutter_root
)
# pod 'TOCropViewController', :path => '/Users/ethanlam/works/base_env/flutter_envirs/extlibs/TOCropViewController.git/2.8.0' , :podspec => '/Users/ethanlam/works/base_env/flutter_envirs/extlibs/TOCropViewController.git/2.8.0/TOCropViewController.podspec'
pod
'SDWebImage'
,
:git
=>
'https://gitee.com/mirrors/SDWebImage.git'
,
:branch
=>
'5.21.3'
,
:modular_headers
=>
true
pod
'SDWebImageWebPCoder'
,
:git
=>
'https://gitee.com/mirrors_SDWebImage/SDWebImageWebPCoder.git'
,
:branch
=>
'0.13.0'
,
:modular_headers
=>
true
# pod 'Mantle', :git => 'https://gitee.com/mirrors/Mantle.git' , :tag => '2.0.2'
pod
'DKImagePickerController'
,
:path
=>
'/Users/ethanlam/works/base_env/flutter_envirs/extlibs/DKImagePickerController.git/4.3.9'
flutter_ios_podfile_setup
target
'Runner'
do
...
...
@@ -55,6 +60,11 @@ end
post_install
do
|
installer
|
installer
.
pods_project
.
targets
.
each
do
|
target
|
# if target.name == 'CropViewController'
# target.remove_from_project
# puts "已移除重复目标: #{target.name}"
# end
flutter_additional_ios_build_settings
(
target
)
# 解决有些库构建版本不一致的问题
...
...
ios/Runner/Info.plist
View file @
81b73f5
...
...
@@ -11,7 +11,7 @@
<key>
CFBundleExecutable
</key>
<string>
$(EXECUTABLE_NAME)
</string>
<key>
CFBundleIdentifier
</key>
<string>
$(PRODUCT_BUNDLE_IDENTIFIER)
</string>
<string>
cn.banxe.appframe
</string>
<key>
CFBundleInfoDictionaryVersion
</key>
<string>
6.0
</string>
<key>
CFBundleName
</key>
...
...
macos/Flutter/GeneratedPluginRegistrant.swift
View file @
81b73f5
...
...
@@ -22,7 +22,6 @@ import photo_manager
import
shared_preferences_foundation
import
tencent_cloud_chat_sdk
import
url_launcher_macos
import
video_compress
import
video_player_avfoundation
import
webview_flutter_wkwebview
...
...
@@ -44,7 +43,6 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
SharedPreferencesPlugin
.
register
(
with
:
registry
.
registrar
(
forPlugin
:
"SharedPreferencesPlugin"
))
TencentCloudChatSdkPlugin
.
register
(
with
:
registry
.
registrar
(
forPlugin
:
"TencentCloudChatSdkPlugin"
))
UrlLauncherPlugin
.
register
(
with
:
registry
.
registrar
(
forPlugin
:
"UrlLauncherPlugin"
))
VideoCompressPlugin
.
register
(
with
:
registry
.
registrar
(
forPlugin
:
"VideoCompressPlugin"
))
FVPVideoPlayerPlugin
.
register
(
with
:
registry
.
registrar
(
forPlugin
:
"FVPVideoPlayerPlugin"
))
WebViewFlutterPlugin
.
register
(
with
:
registry
.
registrar
(
forPlugin
:
"WebViewFlutterPlugin"
))
}
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment