Ionic Run IOS - Build Failed Error 65


#1

Hi all,

i still got problems with my cloned repo.
Running on IOS still not working.
When i enter Ionic Run IOS this error occurs:

** BUILD FAILED

The following build commands failed:
CompileC build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/Objects-normal/i386/AppDelegate.o ionicsocial/Classes/AppDelegate.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/Objects-normal/i386/MainViewController.o ionicsocial/Classes/MainViewController.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)

Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/andredriesel/Apps/ionicsocial/platforms/ios/cordova/build-debug.xcconfig,-project,ionicsocial.xcodeproj,-target,ionicsocial,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,build,CONFIGURATION_BUILD_DIR=/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/sharedpch

All was working 2 months ago and now this… Anyone an idea?


#2

Hi Driesel,

Try to upgrade your ionic version along with latest cordova and npm too.


#3

Run Ionic Starter Examples on IOS is working, just my own project results in errors.

Here my Ionic Infos:

Your system information:

Cordova CLI: 6.3.1
Ionic Framework Version: 1.1.1
Ionic CLI Version: 2.1.1
Ionic App Lib Version: 2.1.1
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v6.1.0
Xcode version: Xcode 7.3.1 Build version 7D1014


#4

Could you please provide full error message that you are receiving in your console while ionic run ios command so that all can get better idea about the actual error.


#5

Running command: /Users/andredriesel/apps/ionicsocial/hooks/after_prepare/010_add_platform_class.js /Users/andredriesel/apps/ionicsocial

add to body class: platform-ios

Building project: /Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial.xcodeproj

Configuration: Debug
Platform: emulator

Build settings from command line:

CONFIGURATION_BUILD_DIR = /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator
SDKROOT = iphonesimulator10.0
SHARED_PRECOMPS_DIR = /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/sharedpch

Build settings from configuration file ‘/Users/andredriesel/Apps/ionicsocial/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

=== BUILD TARGET ionicsocial OF PROJECT ionicsocial WITH CONFIGURATION Debug ===

Check dependencies

Write auxiliary files
/bin/mkdir -p /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/sharedpch/ionicsocial-Prefix-bfoflsijjncddvcqyofcpinpozsp
write-file /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/sharedpch/ionicsocial-Prefix-bfoflsijjncddvcqyofcpinpozsp/ionicsocial-Prefix.pch.pch.hash-criteria

PhaseScriptExecution Copy\ www\ directory build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/Script-304B58A110DAC018002A0835.sh
cd /Users/andredriesel/Apps/ionicsocial/platforms/ios
/bin/sh -c /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/Script-304B58A110DAC018002A0835.sh

CompileAssetCatalog build/emulator/ionicsocial.app ionicsocial/Images.xcassets
cd /Users/andredriesel/Apps/ionicsocial/platforms/ios
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/usr/bin/actool --output-format human-readable-text --notices --warnings --export-dependency-info /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/assetcatalog_dependencies --output-partial-info-plist /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/assetcatalog_generated_info.plist --app-icon AppIcon --launch-image LaunchImage --compress-pngs --enable-on-demand-resources YES --sticker-pack-identifier-prefix .sticker-pack. --target-device iphone --target-device ipad --minimum-deployment-target 8.0 --platform iphonesimulator --product-type com.apple.product-type.application --compile /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app /Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Images.xcassets

/* com.apple.actool.document.notices */

/Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Images.xcassets:./AppIcon.appiconset/[][iphone][57x57][][][1x]: notice: 57x57 app icons only apply to iPhone apps targeting releases of iOS prior to 7.0

/Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Images.xcassets:./AppIcon.appiconset/[][iphone][57x57][][][2x]: notice: 57x57@2x app icons only apply to iPhone apps targeting releases of iOS prior to 7.0

/Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Images.xcassets:./AppIcon.appiconset/[][ipad][50x50][][][1x]: notice: 50x50 iPad spotlight icons only apply to iPad apps targeting releases of iOS prior to 7.0
/Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Images.xcassets:./AppIcon.appiconset/[][ipad][50x50][][][2x]: notice: 50x50 iPad spotlight icons only apply to iPad apps targeting releases of iOS prior to 7.0

/Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Images.xcassets:./AppIcon.appiconset/[][ipad][72x72][][][1x]: notice: 72x72 app icons only apply to iPad apps targeting releases of iOS prior to 7.0

/Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Images.xcassets:./AppIcon.appiconset/[][ipad][72x72][][][2x]: notice: 72x72@2x app icons only apply to iPad apps targeting releases of iOS prior to 7.0

/Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Images.xcassets:./LaunchImage.launchimage/[iphone][][1x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.

/Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Images.xcassets:./LaunchImage.launchimage/[iphone][][2x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Images.xcassets:./LaunchImage.launchimage/[iphone][retina4][2x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Images.xcassets:./LaunchImage.launchimage/[ipad][][1x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.

/Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Images.xcassets:./LaunchImage.launchimage/[ipad][][2x][portrait][full-screen][]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Images.xcassets:./LaunchImage.launchimage/[iphone][736h][3x][portrait][full-screen][8.0]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.

/Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Images.xcassets:./LaunchImage.launchimage/[iphone][736h][3x][landscape][full-screen][8.0]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.
/Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Images.xcassets:./LaunchImage.launchimage/[iphone][667h][2x][portrait][full-screen][8.0]: notice: This launch image only applies to iOS 6.x and prior but the minimum deployment is 7.0 or later.

/* com.apple.actool.compilation-results */
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon29x29.png

/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon29x29@2x.png

/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon29x29@3x.png

/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon40x40@2x.png

/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon40x40@3x.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon57x57.png

/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon57x57@2x.png

/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon60x60@2x.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon60x60@3x.png

/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon29x29~ipad.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon29x29@2x~ipad.png

/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon40x40~ipad.png

/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon40x40@2x~ipad.png

/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon50x50~ipad.png

/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon50x50@2x~ipad.png

/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon72x72~ipad.png

/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon72x72@2x~ipad.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon76x76~ipad.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon76x76@2x~ipad.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/AppIcon83.5x83.5@2x~ipad.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/LaunchImage.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/LaunchImage@2x.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/LaunchImage-568h@2x.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/LaunchImage-Portrait~ipad.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/LaunchImage-Portrait@2x~ipad.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/LaunchImage-800-Portrait-736h@3x.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/LaunchImage-800-Landscape-736h@3x.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/LaunchImage-800-667h@2x.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/LaunchImage-700@2x.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/LaunchImage-700-568h@2x.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/LaunchImage-700-Portrait~ipad.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/LaunchImage-700-Landscape~ipad.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/LaunchImage-700-Portrait@2x~ipad.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/LaunchImage-700-Landscape@2x~ipad.png
/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/assetcatalog_generated_info.plist

CompileXIB ionicsocial/Classes/MainViewController.xib
cd /Users/andredriesel/Apps/ionicsocial/platforms/ios
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/…
/Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module ionicsocial --output-partial-info-plist /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/MainViewController-PartialInfo.plist --auto-activate-custom-fonts --target-device iphone --target-device ipad --minimum-deployment-target 8.0 --output-format human-readable-text --compile /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/MainViewController.nib /Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Classes/MainViewController.xib

ProcessInfoPlistFile build/emulator/ionicsocial.app/Info.plist ionicsocial/ionicsocial-Info.plist
cd /Users/andredriesel/Apps/ionicsocial/platforms/ios
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-infoPlistUtility /Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/ionicsocial-Info.plist -genpkginfo /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/PkgInfo -expandbuildsettings -format binary -platform iphonesimulator -additionalcontentfile /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/MainViewController-PartialInfo.plist -additionalcontentfile /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/assetcatalog_generated_info.plist -o /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/ionicsocial.app/Info.plist

ProcessPCH build/sharedpch/ionicsocial-Prefix-bfoflsijjncddvcqyofcpinpozsp/ionicsocial-Prefix.pch.pch ionicsocial/ionicsocial-Prefix.pch normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/andredriesel/Apps/ionicsocial/platforms/ios
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c-header -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/0v/6t0xy80n2rxf_dl_fqdzzlmm0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.0.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/ionicsocial-generated-files.hmap -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/ionicsocial-own-target-headers.hmap -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/ionicsocial-all-target-headers.hmap -iquote /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/ionicsocial-project-headers.hmap -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/include -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/usr/local/lib/include -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/UninstalledProducts/include -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/UninstalledProducts/iphonesimulator/include -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/DerivedSources/i386 -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/DerivedSources -F/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator -MD -MT dependencies -MF /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/sharedpch/ionicsocial-Prefix-bfoflsijjncddvcqyofcpinpozsp/ionicsocial-Prefix.pch.d -c /Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/ionicsocial-Prefix.pch -o /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/sharedpch/ionicsocial-Prefix-bfoflsijjncddvcqyofcpinpozsp/ionicsocial-Prefix.pch.pch --serialize-diagnostics /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/sharedpch/ionicsocial-Prefix-bfoflsijjncddvcqyofcpinpozsp/ionicsocial-Prefix.pch.dia

CompileC build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/Objects-normal/i386/main.o ionicsocial/main.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/andredriesel/Apps/ionicsocial/platforms/ios
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/0v/6t0xy80n2rxf_dl_fqdzzlmm0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.0.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/ionicsocial-generated-files.hmap -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/ionicsocial-own-target-headers.hmap -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/ionicsocial-all-target-headers.hmap -iquote /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/ionicsocial-project-headers.hmap -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/include -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/usr/local/lib/include -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/UninstalledProducts/include -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/UninstalledProducts/iphonesimulator/include -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/DerivedSources/i386 -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/DerivedSources -F/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator -include /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/sharedpch/ionicsocial-Prefix-bfoflsijjncddvcqyofcpinpozsp/ionicsocial-Prefix.pch -MMD -MT dependencies -MF /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/Objects-normal/i386/main.d --serialize-diagnostics /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/Objects-normal/i386/main.dia -c /Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/main.m -o /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/Objects-normal/i386/main.o

CompileC build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/Objects-normal/i386/MainViewController.o ionicsocial/Classes/MainViewController.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/andredriesel/Apps/ionicsocial/platforms/ios
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/0v/6t0xy80n2rxf_dl_fqdzzlmm0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.0.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/ionicsocial-generated-files.hmap -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/ionicsocial-own-target-headers.hmap -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/ionicsocial-all-target-headers.hmap -iquote /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/ionicsocial-project-headers.hmap -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/include -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/usr/local/lib/include -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/UninstalledProducts/include -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/UninstalledProducts/iphonesimulator/include -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/DerivedSources/i386 -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/DerivedSources -F/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator -include /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/sharedpch/ionicsocial-Prefix-bfoflsijjncddvcqyofcpinpozsp/ionicsocial-Prefix.pch -MMD -MT dependencies -MF /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/Objects-normal/i386/MainViewController.d --serialize-diagnostics /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/Objects-normal/i386/MainViewController.dia -c /Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Classes/MainViewController.m -o /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/Objects-normal/i386/MainViewController.o
In file included from /Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Classes/MainViewController.m:28:
/Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Classes/MainViewController.h:28:9: fatal error: ‘Cordova/CDVViewController.h’ file not found
#import <Cordova/CDVViewController.h>
^
1 error generated.

CompileC build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/Objects-normal/i386/AppDelegate.o ionicsocial/Classes/AppDelegate.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/andredriesel/Apps/ionicsocial/platforms/ios
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/0v/6t0xy80n2rxf_dl_fqdzzlmm0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.0.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/ionicsocial-generated-files.hmap -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/ionicsocial-own-target-headers.hmap -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/ionicsocial-all-target-headers.hmap -iquote /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/ionicsocial-project-headers.hmap -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/include -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator/usr/local/lib/include -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/UninstalledProducts/include -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/UninstalledProducts/iphonesimulator/include -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/DerivedSources/i386 -I/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/DerivedSources -F/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator -include /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/sharedpch/ionicsocial-Prefix-bfoflsijjncddvcqyofcpinpozsp/ionicsocial-Prefix.pch -MMD -MT dependencies -MF /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/Objects-normal/i386/AppDelegate.d --serialize-diagnostics /Users/andredriesel/Apps/ionicsoc
ial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/Objects-normal/i386/AppDelegate.dia -c /Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Classes/AppDelegate.m -o /Users/andredriesel/Apps/ionicsocial/platforms/ios/build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/Objects-normal/i386/AppDelegate.o
In file included from /Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Classes/AppDelegate.m:28:
/Users/andredriesel/Apps/ionicsocial/platforms/ios/ionicsocial/Classes/AppDelegate.h:28:9: fatal error: ‘Cordova/CDVViewController.h’ file not found
#import <Cordova/CDVViewController.h>

1 error generated.

** BUILD FAILED **

The following build commands failed:
CompileC build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/Objects-normal/i386/MainViewController.o ionicsocial/Classes/MainViewController.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler

CompileC build/ionicsocial.build/Debug-iphonesimulator/ionicsocial.build/Objects-normal/i386/AppDelegate.o ionicsocial/Classes/AppDelegate.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)

Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/andredriesel/Apps/ionicsocial/platforms/ios/cordova/build-debug.xcconfig,-project,ionicsocial.xcodeproj,-target,ionicsocial,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,build,CONFIGURATION_BUILD_DIR=/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/andredriesel/Apps/ionicsocial/platforms/ios/build/sharedpch


#6

By looking this error it seems like you are having some issues with your ionic project setup. Could you please confirm that /platforms/ios/CordovaLib directory is present or not? If its not present than try to setup new ionic project and add your custom code in the newly created project.