我想为iOS 16构建一个.ipa文件。所以我就用了阿波罗。基于下面的日志,我已经尝试了以下操作:
- 我更新了我的gem数据:gem update xcodeproj和gem update
- 我在project.pbxproj中将对象版本改为56,将compatibilityVersion改为Xcode 14.0。这个问题不是我的项目的问题,我想这可能是一个问题的远程pc试图建立我的项目。
非常感谢大家。希望有人能帮助我。
在使用Appollo构建应用程序时,我遇到了以下错误:
以下是我的完整日志:
Build started at 2023-05-13 08:07:53.715831+00:00
...
Deleting .flutter-plugins-dependencies... 0ms
Deleting .flutter-plugins... 0ms
The Flutter CLI developer tool uses Google Analytics to report usage and diagnostic data
along with package dependencies, and crash reporting to send basic crash reports.
This data is used to help improve the Dart platform, Flutter framework, and related tools.
Telemetry is not sent on the very first run.
To disable reporting of telemetry, run this terminal command:
flutter --disable-telemetry.
If you opt out of telemetry, an opt-out event will be sent,
and then no further information will be sent.
This data is collected in accordance with the
Google Privacy Policy (https://policies.google.com/privacy).
Resolving dependencies...
_flutterfire_internals 1.0.12 (1.3.0 available)
archive 3.3.1 (3.3.7 available)
args 2.3.1 (2.4.1 available)
background_locator_2 2.0.5 (2.0.6 available)
checked_yaml 2.0.2 (2.0.3 available)
cli_util 0.3.5 (0.4.0 available)
cloud_firestore 4.3.1 (4.7.0 available)
cloud_firestore_platform_interface 5.10.0 (5.14.0 available)
cloud_firestore_web 3.2.1 (3.5.0 available)
collection 1.17.1 (1.17.2 available)
cross_file 0.3.3+2 (0.3.3+4 available)
crypto 3.0.2 (3.0.3 available)
curved_navigation_bar 1.0.2 (1.0.3 available)
ffi 2.0.1 (2.0.2 available)
firebase_auth 4.1.1 (4.6.0 available)
firebase_auth_platform_interface 6.11.7 (6.15.0 available)
firebase_auth_web 5.2.2 (5.5.0 available)
firebase_core 2.4.1 (2.12.0 available)
firebase_core_platform_interface 4.5.2 (4.8.0 available)
firebase_core_web 2.1.0 (2.5.0 available)
firebase_crashlytics 3.0.10 (3.3.0 available)
firebase_crashlytics_platform_interface 3.3.10 (3.6.0 available)
firebase_database 10.0.9 (10.2.0 available)
firebase_database_platform_interface 0.2.2+17 (0.2.5 available)
firebase_database_web 0.2.1+19 (0.2.3 available)
firebase_messaging 14.0.4 (14.6.0 available)
firebase_messaging_platform_interface 4.2.5 (4.5.0 available)
firebase_messaging_web 3.2.5 (3.5.0 available)
firebase_storage 11.0.9 (11.2.0 available)
firebase_storage_platform_interface 4.1.25 (4.4.0 available)
firebase_storage_web 3.3.18 (3.6.0 available)
fixnum 1.0.1 (1.1.0 available)
flutter_foreground_task 3.10.0 (4.1.0 available)
flutter_launcher_icons 0.11.0 (0.13.1 available)
flutter_local_notifications 12.0.3 (14.0.0+2 available)
flutter_local_notifications_linux 2.0.0 (4.0.0+1 available)
flutter_local_notifications_platform_interface 6.0.0 (7.0.0+1 available)
flutter_map 3.1.0 (4.0.0 available)
flutter_map_marker_cluster 1.0.1 (1.1.0 available)
flutter_map_marker_popup 4.0.0 (4.1.0 available)
flutter_plugin_android_lifecycle 2.0.7 (2.0.14 available)
flutter_svg 1.1.6 (2.0.5 available)
geocoding 2.0.5 (2.1.0 available)
geocoding_platform_interface 2.0.1 (3.0.0 available)
geoflutterfire2 2.3.14 (2.3.15 available)
geolocator 8.2.1 (9.0.2 available)
geolocator_android 3.2.1 (4.1.7 available)
http 0.13.5 (0.13.6 available)
http_parser 4.0.1 (4.0.2 available)
image 3.2.2 (4.0.17 available)
image_picker 0.8.6 (0.8.7+5 available)
image_picker_android 0.8.5+4 (0.8.6+14 available)
image_picker_for_web 2.1.10 (2.1.12 available)
image_picker_ios 0.8.6+4 (0.8.7+4 available)
image_picker_platform_interface 2.6.2 (2.6.3 available)
intl 0.18.0 (0.18.1 available)
json_annotation 4.7.0 (4.8.1 available)
matcher 0.12.15 (0.12.16 available)
material_color_utilities 0.2.0 (0.5.0 available)
multi_select_flutter 4.1.2 (4.1.3 available)
path_provider_linux 2.1.7 (2.1.10 available)
path_provider_platform_interface 2.0.5 (2.0.6 available)
path_provider_windows 2.1.3 (2.1.6 available)
permission_handler 10.1.0 (10.2.0 available)
permission_handler_android 10.1.0 (10.2.0 available)
permission_handler_apple 9.0.6 (9.0.8 available)
permission_handler_windows 0.1.1 (0.1.2 available)
petitparser 5.0.0 (5.4.0 available)
plugin_platform_interface 2.1.3 (2.1.4 available)
shared_preferences 2.0.20 (2.1.1 available)
shared_preferences_android 2.0.14 (2.1.4 available)
shared_preferences_foundation 2.1.5 (2.2.2 available)
shared_preferences_linux 2.1.1 (2.2.0 available)
shared_preferences_platform_interface 2.1.0 (2.2.0 available)
shared_preferences_web 2.0.4 (2.1.0 available)
shared_preferences_windows 2.1.1 (2.2.0 available)
smooth_page_indicator 1.0.1 (1.1.0 available)
source_span 1.9.1 (1.10.0 available)
test_api 0.5.1 (0.5.2 available)
timezone 0.9.0 (0.9.2 available)
typed_data 1.3.1 (1.3.2 available)
url_launcher 6.1.10 (6.1.11 available)
url_launcher_android 6.0.26 (6.0.33 available)
url_launcher_linux 3.0.4 (3.0.5 available)
url_launcher_macos 3.0.4 (3.0.5 available)
url_launcher_windows 3.0.5 (3.0.6 available)
win32 3.0.1 (5.0.0 available)
xdg_directories 0.2.0+2 (1.0.0 available)
xml 6.1.0 (6.3.0 available)
yaml 3.1.1 (3.1.2 available)
Got dependencies!
----- Creating export.plist file -----
----- Modifying XCode config -----
----- Pod install -----
Analyzing dependencies
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/user_interface/error_report.rb:34:in `force_encoding': can't modify frozen String (FrozenError)
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/user_interface/error_report.rb:34:in `report'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/command.rb:66:in `report_error'
from /Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:396:in `handle_exception'
from /Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:337:in `rescue in run'
from /Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:324:in `run'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/command.rb:52:in `run'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/bin/pod:55:in `<top (required)>'
from /usr/local/bin/pod:23:in `load'
from /usr/local/bin/pod:23:in `<main>'
/Library/Ruby/Gems/2.6.0/gems/nanaimo-0.3.0/lib/nanaimo/reader.rb:284:in `raise_parser_error': [!] Dictionary missing value for key "CODE_SIGN_IDENTITY", expected '=' and found "[" (Nanaimo::Reader::ParseError)
# -------------------------------------------
# CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
#
838> CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "955a81efd147714167c646fd44b5c3cb8ea71abc";
^
# CODE_SIGN_STYLE = Automatic;
# -------------------------------------------
from /Library/Ruby/Gems/2.6.0/gems/nanaimo-0.3.0/lib/nanaimo/reader.rb:190:in `parse_dictionary'
from /Library/Ruby/Gems/2.6.0/gems/nanaimo-0.3.0/lib/nanaimo/reader.rb:132:in `parse_object'
from /Library/Ruby/Gems/2.6.0/gems/nanaimo-0.3.0/lib/nanaimo/reader.rb:193:in `parse_dictionary'
from /Library/Ruby/Gems/2.6.0/gems/nanaimo-0.3.0/lib/nanaimo/reader.rb:132:in `parse_object'
from /Library/Ruby/Gems/2.6.0/gems/nanaimo-0.3.0/lib/nanaimo/reader.rb:193:in `parse_dictionary'
from /Library/Ruby/Gems/2.6.0/gems/nanaimo-0.3.0/lib/nanaimo/reader.rb:132:in `parse_object'
from /Library/Ruby/Gems/2.6.0/gems/nanaimo-0.3.0/lib/nanaimo/reader.rb:193:in `parse_dictionary'
from /Library/Ruby/Gems/2.6.0/gems/nanaimo-0.3.0/lib/nanaimo/reader.rb:132:in `parse_object'
from /Library/Ruby/Gems/2.6.0/gems/nanaimo-0.3.0/lib/nanaimo/reader.rb:107:in `parse!'
from /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.22.0/lib/xcodeproj/plist.rb:27:in `read_from_path'
from /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.22.0/lib/xcodeproj/project.rb:211:in `initialize_from_file'
from /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.22.0/lib/xcodeproj/project.rb:113:in `open'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:1194:in `block (2 levels) in inspect_targets_to_integrate'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:1193:in `each'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:1193:in `block in inspect_targets_to_integrate'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/user_interface.rb:64:in `section'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:1188:in `inspect_targets_to_integrate'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/installer/analyzer.rb:107:in `analyze'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:422:in `analyze'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:244:in `block in resolve_dependencies'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/user_interface.rb:64:in `section'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:243:in `resolve_dependencies'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/installer.rb:162:in `install!'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/command/install.rb:52:in `run'
from /Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/lib/cocoapods/command.rb:52:in `run'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.12.0/bin/pod:55:in `<top (required)>'
from /usr/local/bin/pod:23:in `load'
from /usr/local/bin/pod:23:in `<main>'
Error updating sources. Exit code 1
Build stop order received at 2023-05-13 08:09:34.564146+00:00
Appollo
更新15.05.2023:
大家好,我发现当我进入appollo build并选择配置时,我可以进入远程PC进行配置。我修改了xcodeproject文件,删除了每个--> CODE_SIGN_IDENTITY[sdk = iphoneos *]”=“955 a81 efd 147714167 c646 fd 44 b5 c3 cb 8 ea 71 abc”中的“[sdk = iphoneos *]”;如日志中所述。
之后,我进入Flutter清洁,Flutter酒吧得到和吊舱安装和建设过程的工作!由于我的目标是创建一个ipa,以便能够在iOS 16上测试我的应用程序,因此我必须创建一个开发版本。当我尝试进入存档时,我收到以下消息:codesign想使用appolo钥匙链。此消息中需要输入密码。我尝试了所有可能的密码,但我无法访问。
通过尝试直接构建命令appollo build start -development,我再次遇到了与开始时相同的问题。我再次删除了“[sdk=iphoneos*]”,但它没有帮助。不知何故,建设过程中自动添加这个,我再次得到相同的错误,在顶部。我希望我能解释我目前的状态。谢谢你!
1条答案
按热度按时间jdg4fx2g1#
在将配置机上的修改正确地应用到本地代码之前,将其发送到开发版本中了吗?你可以使用命令appollo build patch,然后git apply appollo.patch。否则,您在配置机器上所做的更改将保留在那里,并在下一次构建时发送未更改的本地代码。