Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Failed to compile on xcode 10 although it is required? #3

Closed
kuriakinzeng opened this issue Sep 12, 2018 · 3 comments
Closed

Failed to compile on xcode 10 although it is required? #3

kuriakinzeng opened this issue Sep 12, 2018 · 3 comments

Comments

@kuriakinzeng
Copy link

Thanks for creating this plugin!

I am really excited to try it out. I understand that this plugin requires Xcode 10. However, I can’t compile any cordova app on Xcode 10, even barebones and without this plugin added.

Can you tell us more how you manage to compile? Thank you so much.

Xcode version: 10.0 beta 6
Cordova version: 8.0.0

Output when I run cordova run ios:

Building for iPhone X Simulator
Building project: /Users/k/Developer/learn/onsenshortcuts/platforms/ios/Siri Shorcuts.xcworkspace
	Configuration: Debug
	Platform: emulator
Build settings from command line:
    CONFIGURATION_BUILD_DIR = /Users/k/Developer/learn/onsenshortcuts/platforms/ios/build/emulator
    SDKROOT = iphonesimulator12.0
    SHARED_PRECOMPS_DIR = /Users/k/Developer/learn/onsenshortcuts/platforms/ios/build/sharedpch

Build settings from configuration file '/Users/k/Developer/learn/onsenshortcuts/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 target specified for emulator. Deploying to iPhone-X, 12.0 simulator
/Users/k/Developer/learn/onsenshortcuts/platforms/ios/build/emulator/Siri Shorcuts.app/Info.plist file not found.
@bartwesselink
Copy link
Owner

I can confirm this issue, even with this plugin not installed indeed. If I create a project without any plugins, I am still not able to run this command. This looks like a Cordova issue.

I do am able to compile this if I open the XCode-project in /platforms/ios manually in XCode and press compile.

@RasimKanca
Copy link

This is a known issue with Cordova and Xcode 10, you can find more information about it here and a temporary workaround is also available in the comments.

@ShehryarAhmed
Copy link

try this

Cordova CLI

cordova run ios --buildFlag='-UseModernBuildSystem=0'
cordova build ios --buildFlag='-UseModernBuildSystem=0'

Ionic CLI

ionic cordova run ios -- --buildFlag="-UseModernBuildSystem=0"
ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants