JaneaSystems / nodejs-mobile-samples

Repository for demo applications that use Node.js on Mobile
MIT License
168 stars 111 forks source link

Error when to run `cordova build ios --device` #13

Closed nobody4t closed 5 years ago

nobody4t commented 5 years ago

I followed the steps in the example to build the iOS APP. But when I run this line I got error. But I can still build the it from xcode. xcode version: 10.1 MacOS: 10.14.2 Cordova: 8.1.2 Error messages as below:


Building project: /Users/dong/repos/nodejs-mobile-samples/cordova-angularjs/cordova/ExampleCordovaAngular/platforms/ios/HelloCordova.xcworkspace
Building project: /Users/dong/repos/nodejs-mobile-samples/cordova-angularjs/cordova/ExampleCordovaAngular/platforms/ios/HelloCordova.xcworkspace
    Configuration: Debug
    Configuration: Debug
    Configuration: Debug
    Platform: device
    Platform: device
    Platform: device
User defaults from command line:
    IDEArchivePathOverride = /Users/dong/repos/nodejs-mobile-samples/cordova-angularjs/cordova/ExampleCordovaAngular/platforms/ios/HelloCordova.xcarchive

Build settings from command line:
    CONFIGURATION_BUILD_DIR = /Users/dong/repos/nodejs-mobile-samples/cordova-angularjs/cordova/ExampleCordovaAngular/platforms/ios/build/device
    SHARED_PRECOMPS_DIR = /Users/dong/repos/nodejs-mobile-samples/cordova-angularjs/cordova/ExampleCordovaAngular/platforms/ios/build/sharedpch

Build settings from configuration file '/Users/dong/repos/nodejs-mobile-samples/cordova-angularjs/cordova/ExampleCordovaAngular/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

error: archive not found at path '/Users/dong/repos/nodejs-mobile-samples/cordova-angularjs/cordova/ExampleCordovaAngular/platforms/ios/HelloCordova.xcarchive'
** EXPORT FAILED **

Error
    at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)```
nobody4t commented 5 years ago

The answers is here. cordova does not support xcode 10.0 well. https://stackoverflow.com/questions/52385600/ionic-ios-build-fails-error-archive-not-found