You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2017/06/03 01:43:04 UTC

[jira] [Comment Edited] (CB-12830) cordova emulate ios with --target throws undefined error

    [ https://issues.apache.org/jira/browse/CB-12830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16035751#comment-16035751 ] 

Shazron Abdullah edited comment on CB-12830 at 6/3/17 1:42 AM:
---------------------------------------------------------------

I repro'ed your issue and error. Here's what the empty lines show:
{code}
No scripts found for hook "before_emulate".
No scripts found for hook "before_prepare".
Checking config.xml and package.json for saved platforms that haven't been added to the project
Config.xml and package.json platforms are the same. No pkg.json modification.
Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms.
PlatformApi successfully found for platform ios
Checking config.xml for saved plugins that haven't been added to the project
Checking for any plugins added to the project that have not been installed in ios platform
No differences found between plugins added to project and installed in ios platform. Continuing...
Generating platform-specific config.xml from defaults for iOS at /Users/shazron/Desktop/foo/platforms/ios/HelloCordova/config.xml
Merging project's config.xml into platform-specific iOS config.xml
Merging and updating files from [www, platforms/ios/platform_www] to platforms/ios/www
Current launch storyboard undefined
Not changing launch storyboard setting in info plist.
Wrote out iOS Bundle Identifier "io.cordova.hellocordova" and iOS Bundle Version "1.0.0" to /Users/shazron/Desktop/foo/platforms/ios/HelloCordova/HelloCordova-Info.plist
No need to update build settings for launch storyboard support.
iOS Product Name has not changed (still "HelloCordova")
This app does not have icons defined
This app does not have splash screens defined
Updating launch storyboard images at platforms/ios/HelloCordova/Images.xcassets/LaunchStoryboard.imageset/
Updating Storyboard image set contents.json
This app does not have additional resource files defined
Prepared iOS project successfully
No scripts found for hook "after_prepare".
{code}


was (Author: shazron):
I repro'ed your issue. Here's what the empty lines show:
{code}
No scripts found for hook "before_emulate".
No scripts found for hook "before_prepare".
Checking config.xml and package.json for saved platforms that haven't been added to the project
Config.xml and package.json platforms are the same. No pkg.json modification.
Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms.
PlatformApi successfully found for platform ios
Checking config.xml for saved plugins that haven't been added to the project
Checking for any plugins added to the project that have not been installed in ios platform
No differences found between plugins added to project and installed in ios platform. Continuing...
Generating platform-specific config.xml from defaults for iOS at /Users/shazron/Desktop/foo/platforms/ios/HelloCordova/config.xml
Merging project's config.xml into platform-specific iOS config.xml
Merging and updating files from [www, platforms/ios/platform_www] to platforms/ios/www
Current launch storyboard undefined
Not changing launch storyboard setting in info plist.
Wrote out iOS Bundle Identifier "io.cordova.hellocordova" and iOS Bundle Version "1.0.0" to /Users/shazron/Desktop/foo/platforms/ios/HelloCordova/HelloCordova-Info.plist
No need to update build settings for launch storyboard support.
iOS Product Name has not changed (still "HelloCordova")
This app does not have icons defined
This app does not have splash screens defined
Updating launch storyboard images at platforms/ios/HelloCordova/Images.xcassets/LaunchStoryboard.imageset/
Updating Storyboard image set contents.json
This app does not have additional resource files defined
Prepared iOS project successfully
No scripts found for hook "after_prepare".
{code}

> cordova emulate ios with --target throws undefined error
> --------------------------------------------------------
>
>                 Key: CB-12830
>                 URL: https://issues.apache.org/jira/browse/CB-12830
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-ios
>    Affects Versions: 7.0.0
>         Environment: MacBook Pro (Retina, 15-inch, Mid 2015)
> macOS 10.12.5
> nodejs version v7.9.0
> cordova version 7.0.1
> Installed platforms:
>   android 6.2.3
>   ios 4.4.0
> Available platforms: 
>   blackberry10 ~3.8.0 (deprecated)
>   browser ~4.1.0
>   osx ~4.0.1
>   webos ~3.7.0
>            Reporter: Michal Cwienczek
>            Priority: Minor
>              Labels: ios
>             Fix For: cordova-ios@4.4.1
>
>
> This image best describes what happens:
> https://pasteboard.co/7GV5viPww.png
> {code}
> $ cordova emulate ios --target="iPhone-6s-Plus, 9.3" --verbose
> [bunch of empty lines that are probably the same as the background color]
> Error: Cannot read property 'name' of undefined
> {code}
> So there are 2 issues:
> 1. Verbose output is empty
> 2. at the end cordova throws undefined error
> MacBook Pro (Retina, 15-inch, Mid 2015)
> macOS 10.12.5
> nodejs version v7.9.0
> cordova version 7.0.1



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org