Hello everybody,
I want to run a project on iOS device rather than the simulator.
First of all my system information is:
Cordova CLI: 4.3.1
Gulp version: CLI version 3.8.11
Gulp local:
Ionic Version: 1.0.0
Ionic CLI Version: 1.5.5
Ionic App Lib Version: 0.2.2
ios-deploy version: 1.7.0
ios-sim version: 3.1.1
OS: Mac OS X Yosemite
Node Version: v0.10.35
Xcode version: Xcode 6.2 Build version 6C131e
When I execute ionic run ios --device
I get the following error. It’s not so long, so, I’m pasting it all:
Running command: /Users/emre/sandbox/aykut/todo/hooks/after_prepare/010_add_platform_class.js /Users/emre/sandbox/aykut/todo
add to body class: platform-ios
Running command: /Users/emre/sandbox/aykut/todo/platforms/ios/cordova/run --device
Building project : /Users/emre/sandbox/aykut/todo/platforms/ios/todo.xcodeproj
Configuration : Debug
Platform : device
Build settings from command line:
ARCHS = armv7 armv7s arm64
CONFIGURATION_BUILD_DIR = /Users/emre/sandbox/aykut/todo/platforms/ios/build/device
SDKROOT = iphoneos8.2
SHARED_PRECOMPS_DIR = /Users/emre/sandbox/aykut/todo/platforms/ios/build/sharedpch
VALID_ARCHS = armv7 armv7s arm64
Build settings from configuration file '/Users/emre/sandbox/aykut/todo/platforms/ios/cordova/build-debug.xcconfig':
CODE_SIGN_IDENTITY = iPhone Developer
CODE_SIGN_RESOURCE_RULES_PATH = $(SDKROOT)/ResourceRules.plist
=== BUILD TARGET CordovaLib OF PROJECT CordovaLib WITH CONFIGURATION Debug ===
Check dependencies
=== BUILD TARGET todo OF PROJECT todo WITH CONFIGURATION Debug ===
Check dependencies
Code Sign error: No code signing identities found: No valid signing identities (i.e. certificate and private key pair) matching the team ID “(null)” were found.
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.2'
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)
Error code 65 for command: xcodebuild with args: -xcconfig,/Users/emre/sandbox/aykut/todo/platforms/ios/cordova/build-debug.xcconfig,-project,todo.xcodeproj,ARCHS=armv7 armv7s arm64,-target,todo,-configuration,Debug,-sdk,iphoneos,build,VALID_ARCHS=armv7 armv7s arm64,CONFIGURATION_BUILD_DIR=/Users/emre/sandbox/aykut/todo/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/emre/sandbox/aykut/todo/platforms/ios/build/sharedpch
ERROR running one or more of the platforms: Error: /Users/emre/sandbox/aykut/todo/platforms/ios/cordova/run: Command failed with exit code 2
You may not have the required environment or OS to run this project
Any help will be appreciated. Thanks.