Skip to content

cordova compile iOS does nothing #329

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
btate opened this issue Sep 19, 2018 · 1 comment
Closed

cordova compile iOS does nothing #329

btate opened this issue Sep 19, 2018 · 1 comment

Comments

@btate
Copy link

btate commented Sep 19, 2018

When I run cordova compile|build ios I get my build settings output to the terminal, then nothing. This just started happening after updating to Xcode 10. I have all the latest command line tools installed and I'm using cordova 8.0.0.

shell:$ cordova compile ios --verbose
No scripts found for hook "before_compile".
PlatformApi successfully found for platform ios
Reading build config file:
Building for iPhone XS Max Simulator
Building project: /Users/me/Projects/myApp/platforms/ios/myApp.xcworkspace
        Configuration: Debug
        Platform: emulator
Build settings from command line:
    CONFIGURATION_BUILD_DIR = /Users/me/Projects/myApp/platforms/ios/build/emulator
    SDKROOT = iphonesimulator12.0
    SHARED_PRECOMPS_DIR = /Users/me/Projects/myApp/platforms/ios/build/sharedpch

Build settings from configuration file '/Users/me/Projects/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
    DEVELOPMENT_TEAM = BNCF67RW2H
    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

No scripts found for hook "after_compile".

As you can see it dumps out the configuration then checks for an after compile hook. This happens whether I run cordova compile ios or cordova build ios

@dpogue
Copy link
Member

dpogue commented Sep 19, 2018

Cordova is not compatible with Xcode 10's new build system yet.

There are some workarounds documented here.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants