该项目运行正常,但是由于我更新了xcode 10并更新到mac mojaveOS,所以问题就出现了,对于Android来说,它工作正常。而且我已经添加了我从cordova link在github上看到的标志,但是这些都没有使我的项目运行,并且如果我在xcode上打开该项目,它甚至都不会打开。只是崩溃。
Cancel
我的控制台日志(它在构建中停在这里)
ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
我的离子信息
Reading build config file:
Building for iPhone X Simulator
Building project: /Users/quanticosolutions/Desktop/myseg/mobile/platforms/ios/MyApp.xcworkspace
Configuration: Debug
Platform: emulator
Adding xcodebuildArg: -UseModernBuildSystem=0
User defaults from command line:
UseModernBuildSystem = 0
Build settings from command line:
CONFIGURATION_BUILD_DIR = /Users/quanticosolutions/Desktop/myseg/mobile/platforms/ios/build/emulator
SDKROOT = iphonesimulator12.1
SHARED_PRECOMPS_DIR = /Users/quanticosolutions/Desktop/myseg/mobile/platforms/ios/build/sharedpch
Build settings from configuration file '/Users/quanticosolutions/Desktop/myseg/mobile/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
FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/OneSignal/iOS_SDK/OneSignalSDK/Framework"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/OneSignal"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/OneSignal"
OTHER_LDFLAGS = $(inherited) -ObjC -framework "OneSignal" -framework "SystemConfiguration" -framework "UIKit" -framework "UserNotifications"
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
答案 0 :(得分:1)
我发现的第一个解决方案是降级到xcode 9.4.1,但是现在我无法在装有ios 12的设备上运行,因此不是最佳解决方案,因为新版本必须删除ios平台并再次添加,最新的版本的ios并有效