ios - Xcode 更新后 Ionic IOS 构建失败
问题描述
我在 Ionic 3 应用程序中工作并且没有任何问题。我必须更新 XCode,更新后,我的应用程序停止工作。
我还必须更新操作系统。同样,阅读论坛,我更新了 Ionic 和 Cordova。但不知道出了什么问题。下面是痕迹。
命令:*ionic cordova build ios --vebrose*
日志:
ionic-app-scripts build --target cordova --platform ios
[21:43:03] ionic-app-scripts 3.1.8
[21:43:03] build dev started ...
[21:43:03] clean started ...
[21:43:03] clean finished in 10 ms
[21:43:03] copy started ...
[21:43:03] deeplinks started ...
[21:43:03] deeplinks finished in 318 ms
[21:43:03] transpile started ...
[21:43:08] transpile finished in 5.40 s
[21:43:08] preprocess started ...
[21:43:08] preprocess finished in 1 ms
[21:43:08] webpack started ...
[21:43:09] copy finished in 5.90 s
[21:43:15] webpack finished in 6.05 s
[21:43:15] sass started ...
Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.
[21:43:16] sass finished in 1.64 s
[21:43:16] postprocess started ...
[21:43:16] postprocess finished in 14 ms
[21:43:16] lint started ...
[21:43:16] build dev finished in 13.58 s
[21:43:21] lint finished in 4.68 s
> cordova build ios
Building for iPhone XS Max Simulator
Building project: /Users/ustuser/Documents/c2mobileV2-WB/c2mobile/platforms/ios/c2mobile.xcworkspace
Configuration: Debug
Platform: emulator
Build settings from command line:
CONFIGURATION_BUILD_DIR = /Users/ustuser/Documents/c2mobileV2-WB/c2mobile/platforms/ios/build/emulator
SDKROOT = iphonesimulator12.0
SHARED_PRECOMPS_DIR = /Users/ustuser/Documents/c2mobileV2-WB/c2mobile/platforms/ios/build/sharedpch
Build settings from configuration file '/Users/ustuser/Documents/c2mobileV2-WB/c2mobile/platforms/ios/cordova/build-debug.xcconfig':
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES
CODE_SIGN_ENTITLEMENTS = $(PROJECT_DIR)/$(PROJECT_NAME)/Entitlements-$(CONFIGURATION).plist
CODE_SIGN_IDENTITY = iPhone Developer
ENABLE_BITCODE = NO
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "$(TARGET_BUILD_DIR)/usr/local/lib/include" "$(OBJROOT)/UninstalledProducts/include" "$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include" "$(BUILT_PRODUCTS_DIR)"
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
OTHER_LDFLAGS = -ObjC
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
PODS_ROOT = ${SRCROOT}/Pods
SWIFT_OBJC_BRIDGING_HEADER = $(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h
也在阅读论坛,我安装了 CocoaPods。还在platform / ios中执行了以下命令
pod disintegrate
pod install
pod init
以下是我的环境详细信息。
OS version - macOS High Sierra, Version 10.13.6
XCode version - Version 10.0 (10A255)
Ionic CLI version - 4.2.1
Cordova version - 8.1.1
NPM version - 5.6.0
Node version - 8.11.1
Angular CLI version - 6.2.4
解决方案
推荐阅读
- ffmpeg - 如何配置 ffmpeg 管道以进行流式传输
- regex - 在保留新行的数字列表(每个都在新行)之间插入逗号(',')
- python - 按距离减少 GPS 数据集
- angular - Angular Material Table 未正确显示表单控件
- r - 将数据宽格式数据帧转换为r中数据帧中的长格式
- java - 使用 maven 构建项目时出现 StackOverlowError
- javascript - nodejs - 保存与我的文件树相关的新文件
- ssas - 表格分区 - 如何在不破坏所有内容的情况下添加列?
- javascript - 如何使用 jsPDF 库格式化从 HTML 生成的 PDF 文件?
- c - 奇怪的行为 c 比较