ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

Ionic Build is stuck with Xcode 8.0

Open jgw96 opened this issue 10 years ago • 29 comments

From @chack on September 21, 2016 20:31

Short description of the problem:

With Xcode 8.0 I can't use ionic build command for iOS. I already removed and readded hooks and iOS platform. The command is stuck after the printed console log below:

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)

Build settings from command line:

CONFIGURATION_BUILD_DIR = /Users/Jan/Documents/Wohntraum360/wohntraumapp/platforms/ios/build/emulator

SDKROOT = iphonesimulator10.0
SHARED_PRECOMPS_DIR = /Users/Jan/Documents/Wohntraum360/wohntraumapp/platforms/ios/build/sharedpch

Build settings from configuration file '/Users/Jan/Documents/Wohntraum360/wohntraumapp/platforms/ios/cordova/build-debug.xcconfig':

CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES

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)"
IPHONEOS_DEPLOYMENT_TARGET = 8.0
OTHER_LDFLAGS = -ObjC
SWIFT_OBJC_BRIDGING_HEADER = $(PROJECT_DIR)/$(PROJECT_NAME)/Bridging-Header.h

TARGETED_DEVICE_FAMILY = 1,2

Which Ionic Version? 1.x or 2.x

2.0 Beta 11

Run ionic info from terminal/cmd prompt: (paste output below)

Cordova CLI: 6.3.1 Ionic Framework Version: 2.0.0-beta.11 Ionic CLI Version: 2.0.0 Ionic App Lib Version: 2.0.0-beta.20 ios-deploy version: 1.8.6 ios-sim version: 5.0.8 OS: Mac OS X El Capitan Node Version: v4.4.7 Xcode version: Xcode 8.0 Build version 8A218a

Copied from original issue: driftyco/ionic#8161

jgw96 avatar Sep 22 '16 15:09 jgw96

@emint88 - I cloned to separate location that user home: ~/Projects/IonicProject/

However, still same result. No Error build stopping at different line number each time.

ravishtiwari avatar Jun 16 '17 15:06 ravishtiwari

@ravishtiwari : step 1 - remove iCloud sync for desktop and documents step 2 - remove platform , update node.js as you mention it is slow. step 3 - add platform

ghost avatar Jun 16 '17 15:06 ghost

@emint88 - my new clone location is outside Desktop and Document, in user home directory. I've Node 4.8.3, I earlier had node v6, but, it was creating issues, so downgraded to v4. I will try the steps you mentioned one more time and report back to you.

ravishtiwari avatar Jun 16 '17 15:06 ravishtiwari

Well, it not working. cloned under ~/, fresh clone, ran, ionic platform remove ios, ionic platform add ios, ionic build ios. Did not work, did a ionic state reset, ionic build ios, same result.

Removed the platform/, plugin and node_modules/ directory manually, and repeated the steps, no error, but, no success also.

@emint88 - I am only syncing Reminders and Notes to iCloud, I checked this from System Preferences >> iCloud.

P.S.: I am on Mac OS El Capitan (10.11.6 (15G1108))

ravishtiwari avatar Jun 18 '17 11:06 ravishtiwari

I Signed out of iCloud, just to make sure nothing is syncing, took a fresh clone, repeated the steps. Still, build is stopping mid way.

P.S: on same machine, Android Build is working without any problem, so, to me it looks like not 'sync' issue. Something to do with either xcode cli/cordova cli/ionic cli

ravishtiwari avatar Jun 20 '17 10:06 ravishtiwari

@ravishtiwari : Yea you are right it is sounds like ionic cli . Since you have newer cordova cli why do not try cordova rm platform/add/build/run ??

ghost avatar Jun 20 '17 11:06 ghost

@emint88 - doing cordova platform remove/add ios/ cordova build ios seems to be working, with some error for cordova-plugin-push, I am not sure if it's related or not. Another thing is, there is not cordova state reset to reset the entire platform and cordova platform add ios does not seems to be installing all related plugins from package.json :(

I will do some more test around this and report back if build+run works for me with cordova command.

Thanks.

ravishtiwari avatar Jun 21 '17 10:06 ravishtiwari

@emint88 - cordova build commands working for me, for android as well as ios. It's certainly some issue with Ionic CLI.

Thanks for you help. This issue isn't resolved with ionic, but, cordova cli work around is working for me.

ravishtiwari avatar Jul 07 '17 10:07 ravishtiwari

Thanks for the issue! This issue appears to be associated with an old version of the Ionic CLI. Please update to the latest CLI version, which supports all versions of the Ionic Framework. If the issue is relevant and if it persists after updating to the latest CLI version, please create a new issue.

Thank you for using Ionic!

ionitron-bot[bot] avatar Jul 12 '18 18:07 ionitron-bot[bot]