macmini:iosprj jevian$ cordova build ios
Building for iPhone XS Max Simulator
Building project: /Users/jevian/iosprj/platforms/ios/HelloCordova.xcworkspace
Configuration: Debug
Platform: emulator
Build settings from command line:
CONFIGURATION_BUILD_DIR = /Users/jevian/iosprj/platforms/ios/build/emulator
SDKROOT = iphonesimulator12.0
SHARED_PRECOMPS_DIR = /Users/jevian/iosprj/platforms/ios/build/sharedpch
Build settings from configuration file '/Users/jevian/iosprj/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
macmini:iosprj jevian$
这是我的全部日志,没有错误消息,bug cordova不要运行xcodebuild,不要创建档案。
我的Mac OS是10.13.6
cordova版本为8.0.0
并安装ios@~4.5.5
xcode版本是 Xcode 10.0 生成版本10A255
答案 0 :(得分:0)
我知道此问题的原因并找到解决方案。 看看这个: https://github.com/apache/cordova-ios/issues/407
A few issues have started to come in regarding the state of Cordova projects on Xcode 10. This is a rough summary of the situation:
Xcode 10 uses a new build system by default (previously available on an opt-in basis in Xcode 9). The cordova-ios project structure is not compatible with this new build system and results in failures.
Officially, we do not claim to support Xcode 10.