Cordova build ios 没有通过,我没有收到任何错误。
Posted
技术标签:
【中文标题】Cordova build ios 没有通过,我没有收到任何错误。【英文标题】:Cordova build ios doesn't go through and I get no error. 【发布时间】:2019-02-16 09:48:58 【问题描述】:我对 apache Cordova 和 ios 平台有疑问。我被困在 Cordova 构建中,除了下面的消息之外什么都没有发生。
Cordova 构建 iOS --verbose:
No scripts found for hook "before_compile".
PlatformApi successfully found for platform ios
Building for iPhone X Simulator
Building project: /Users/ben/Desktop/myApp/platforms/ios/myApp.xcworkspace
Configuration: Debug
Platform: emulator
Build settings from command line:
CONFIGURATION_BUILD_DIR = /Users/ben/Desktop/myApp/platforms/ios/build/emulator
SDKROOT = iphonesimulator12.0
SHARED_PRECOMPS_DIR = /Users/ben/Desktop/myApp/platforms/ios/build/sharedpch
Build settings from configuration file '/Users/ben/Desktop/myApp/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 = DEBUG=1
HEADER_SEARCH_PATHS = "$(TARGET_BUILD_DIR)/usr/local/lib/include" "$(OBJROOT)/UninstalledProducts/include" "$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include" "$(BUILT_PRODUCTS_DIR)"
OTHER_LDFLAGS = -ObjC
SWIFT_OBJC_BRIDGING_HEADER = $(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h
No scripts found for hook "after_compile".
【问题讨论】:
我也面临同样的问题。你找到解决办法了吗?? 【参考方案1】:这是一个科尔多瓦问题。关注这个thread
以下代码为我修复了错误:-
ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
【讨论】:
谢谢,我回到了旧版本的 Cordova,但如果它解决了问题,我会尝试并接受它作为答案。 即使使用--buildFlag="-UseModernBuildSystem=0"
,我的仍然面临同样的错误以上是关于Cordova build ios 没有通过,我没有收到任何错误。的主要内容,如果未能解决你的问题,请参考以下文章
`node cordova/lib/copy-www-build-step.js`在构建阶段时出现cordova构建错误
存档成功,但导出失败:cordova build ios --release
IONIC 4:“ionic cordova build ios”不显示使用 Xcode 10.1 构建失败或成功
Cordova 5 build 命令正在删除 iOS 设备方向设置