You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Dwayne Coussement (JIRA)" <ji...@apache.org> on 2012/10/10 10:17:03 UTC

[jira] [Created] (CB-1614) release build via command line tools

Dwayne Coussement created CB-1614:
-------------------------------------

             Summary: release build via command line tools
                 Key: CB-1614
                 URL: https://issues.apache.org/jira/browse/CB-1614
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 2.1.0
            Reporter: Dwayne Coussement
            Assignee: Shazron Abdullah
             Fix For: 2.2.0


When you try to make a release build with the command line tools you get an error like:
fatal error: 'Cordova/CDVViewController.h' file not found
#import <Cordova/CDVViewController.h>

this works perfectly in the normal Xcode GUI environment, should work with the command line tools too

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1614) release build via command line tools

Posted by "Dwayne Coussement (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13473933#comment-13473933 ] 

Dwayne Coussement commented on CB-1614:
---------------------------------------

it returns /Applications/Xcode.app/Contents/Developer

I have no idea what you did that for you it works, I tried to build it command line with a Mac Mini and a Macbook Air, but it doesn't work for me. It used to work with the previous version
                
> release build via command line tools
> ------------------------------------
>
>                 Key: CB-1614
>                 URL: https://issues.apache.org/jira/browse/CB-1614
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>            Reporter: Dwayne Coussement
>            Assignee: Shazron Abdullah
>             Fix For: 2.2.0
>
>
> When you try to make a release build with the command line tools you get an error like:
> fatal error: 'Cordova/CDVViewController.h' file not found
> #import <Cordova/CDVViewController.h>
> this works perfectly in the normal Xcode GUI environment, should work with the command line tools too

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1614) release build via command line tools

Posted by "Dwayne Coussement (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478994#comment-13478994 ] 

Dwayne Coussement commented on CB-1614:
---------------------------------------

doesn't work for me, I've tried it with an empty project and it just fails and says it doesn't find the CDVViewController.h file, I'll try again with the Cordova 2.2.0rc...
                
> release build via command line tools
> ------------------------------------
>
>                 Key: CB-1614
>                 URL: https://issues.apache.org/jira/browse/CB-1614
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>            Reporter: Dwayne Coussement
>            Assignee: Shazron Abdullah
>             Fix For: 2.2.0
>
>
> When you try to make a release build with the command line tools you get an error like:
> fatal error: 'Cordova/CDVViewController.h' file not found
> #import <Cordova/CDVViewController.h>
> this works perfectly in the normal Xcode GUI environment, should work with the command line tools too

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1614) release build via command line tools

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13473619#comment-13473619 ] 

Shazron Abdullah commented on CB-1614:
--------------------------------------

Cannot repro - I just tried it with a new project with the command line tools in the cordova subfolder for the new project.

What does `xcode-select -print-path` return for you?

                
> release build via command line tools
> ------------------------------------
>
>                 Key: CB-1614
>                 URL: https://issues.apache.org/jira/browse/CB-1614
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>            Reporter: Dwayne Coussement
>            Assignee: Shazron Abdullah
>             Fix For: 2.2.0
>
>
> When you try to make a release build with the command line tools you get an error like:
> fatal error: 'Cordova/CDVViewController.h' file not found
> #import <Cordova/CDVViewController.h>
> this works perfectly in the normal Xcode GUI environment, should work with the command line tools too

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1614) release build via command line tools

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13483324#comment-13483324 ] 

Shazron Abdullah commented on CB-1614:
--------------------------------------

Hmm seems like it can't find the CordovaLib referenced in your project so it can diagnose it. Can you check whether it exists?
The path in the log is: /Users/dwayne/Documents/GIT/TapCrowd/src/CordovaLib.xcodeproj

                
> release build via command line tools
> ------------------------------------
>
>                 Key: CB-1614
>                 URL: https://issues.apache.org/jira/browse/CB-1614
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>            Reporter: Dwayne Coussement
>            Assignee: Shazron Abdullah
>             Fix For: 2.3.0
>
>
> When you try to make a release build with the command line tools you get an error like:
> fatal error: 'Cordova/CDVViewController.h' file not found
> #import <Cordova/CDVViewController.h>
> this works perfectly in the normal Xcode GUI environment, should work with the command line tools too

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CB-1614) release build via command line tools

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah resolved CB-1614.
----------------------------------

    Resolution: Not A Problem
    
> release build via command line tools
> ------------------------------------
>
>                 Key: CB-1614
>                 URL: https://issues.apache.org/jira/browse/CB-1614
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>            Reporter: Dwayne Coussement
>            Assignee: Shazron Abdullah
>             Fix For: 2.3.0
>
>
> When you try to make a release build with the command line tools you get an error like:
> fatal error: 'Cordova/CDVViewController.h' file not found
> #import <Cordova/CDVViewController.h>
> this works perfectly in the normal Xcode GUI environment, should work with the command line tools too

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1614) release build via command line tools

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13482710#comment-13482710 ] 

Shazron Abdullah commented on CB-1614:
--------------------------------------

In the bin folder, run the diagnose_project script on your .xcodeproj file, and post the log.
                
> release build via command line tools
> ------------------------------------
>
>                 Key: CB-1614
>                 URL: https://issues.apache.org/jira/browse/CB-1614
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>            Reporter: Dwayne Coussement
>            Assignee: Shazron Abdullah
>             Fix For: 2.2.0
>
>
> When you try to make a release build with the command line tools you get an error like:
> fatal error: 'Cordova/CDVViewController.h' file not found
> #import <Cordova/CDVViewController.h>
> this works perfectly in the normal Xcode GUI environment, should work with the command line tools too

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1614) release build via command line tools

Posted by "Dwayne Coussement (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13491338#comment-13491338 ] 

Dwayne Coussement commented on CB-1614:
---------------------------------------

Hi Shazron, I deleted everything, and started over with Cordova 2.2. Now my project is able to build again! Thanks for the great support!
                
> release build via command line tools
> ------------------------------------
>
>                 Key: CB-1614
>                 URL: https://issues.apache.org/jira/browse/CB-1614
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>            Reporter: Dwayne Coussement
>            Assignee: Shazron Abdullah
>             Fix For: 2.3.0
>
>
> When you try to make a release build with the command line tools you get an error like:
> fatal error: 'Cordova/CDVViewController.h' file not found
> #import <Cordova/CDVViewController.h>
> this works perfectly in the normal Xcode GUI environment, should work with the command line tools too

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1614) release build via command line tools

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13474518#comment-13474518 ] 

Shazron Abdullah commented on CB-1614:
--------------------------------------

Just to rule things out, can you download the latest: https://github.com/apache/incubator-cordova-ios/downloads
and try again.

It is possible it's a script path problem - you may be running an older script somehow that is in your path.
                
> release build via command line tools
> ------------------------------------
>
>                 Key: CB-1614
>                 URL: https://issues.apache.org/jira/browse/CB-1614
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>            Reporter: Dwayne Coussement
>            Assignee: Shazron Abdullah
>             Fix For: 2.2.0
>
>
> When you try to make a release build with the command line tools you get an error like:
> fatal error: 'Cordova/CDVViewController.h' file not found
> #import <Cordova/CDVViewController.h>
> this works perfectly in the normal Xcode GUI environment, should work with the command line tools too

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1614) release build via command line tools

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489115#comment-13489115 ] 

Shazron Abdullah commented on CB-1614:
--------------------------------------

Dwayne, any update to my last two comments?
                
> release build via command line tools
> ------------------------------------
>
>                 Key: CB-1614
>                 URL: https://issues.apache.org/jira/browse/CB-1614
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>            Reporter: Dwayne Coussement
>            Assignee: Shazron Abdullah
>             Fix For: 2.3.0
>
>
> When you try to make a release build with the command line tools you get an error like:
> fatal error: 'Cordova/CDVViewController.h' file not found
> #import <Cordova/CDVViewController.h>
> this works perfectly in the normal Xcode GUI environment, should work with the command line tools too

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CB-1614) release build via command line tools

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-1614:
---------------------------------

    Fix Version/s:     (was: 2.2.0)
                   2.3.0

Punting to 2.3.0. This is a common problem with certain project setups that a bin/diagnose_project will help solve.
                
> release build via command line tools
> ------------------------------------
>
>                 Key: CB-1614
>                 URL: https://issues.apache.org/jira/browse/CB-1614
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>            Reporter: Dwayne Coussement
>            Assignee: Shazron Abdullah
>             Fix For: 2.3.0
>
>
> When you try to make a release build with the command line tools you get an error like:
> fatal error: 'Cordova/CDVViewController.h' file not found
> #import <Cordova/CDVViewController.h>
> this works perfectly in the normal Xcode GUI environment, should work with the command line tools too

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1614) release build via command line tools

Posted by "Dwayne Coussement (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13483233#comment-13483233 ] 

Dwayne Coussement commented on CB-1614:
---------------------------------------

MacBook-Air-van-Dwayne:bin dwayne$ ./diagnose_project /Users/dwayne/Documents/GIT/TapCrowd/src/TapcrowdV2.xcodeproj 


-------------------------------------BEGIN--------------------------------------
Inspecting project: /Users/dwayne/Documents/GIT/TapCrowd/src/TapcrowdV2.xcodeproj/project.pbxproj


--------------------------------------------------------------------------------
Finding your project's sub-projects...

Sub-project: {'path': 'CordovaLib.xcodeproj', 'name': '(not found)', 'sourceTree': '<group>'}
Sub-project: {'path': 'three20/src/Three20/Three20.xcodeproj', 'name': 'Three20.xcodeproj', 'sourceTree': 'SOURCE_ROOT'}
Sub-project: {'path': 'three20/src/Three20Core/Three20Core.xcodeproj', 'name': 'Three20Core.xcodeproj', 'sourceTree': 'SOURCE_ROOT'}
Sub-project: {'path': 'three20/src/Three20Network/Three20Network.xcodeproj', 'name': 'Three20Network.xcodeproj', 'sourceTree': 'SOURCE_ROOT'}
Sub-project: {'path': 'three20/src/Three20Style/Three20Style.xcodeproj', 'name': 'Three20Style.xcodeproj', 'sourceTree': 'SOURCE_ROOT'}
Sub-project: {'path': 'three20/src/Three20UI/Three20UI.xcodeproj', 'name': 'Three20UI.xcodeproj', 'sourceTree': 'SOURCE_ROOT'}
Sub-project: {'path': 'three20/src/Three20UICommon/Three20UICommon.xcodeproj', 'name': 'Three20UICommon.xcodeproj', 'sourceTree': 'SOURCE_ROOT'}
Sub-project: {'path': 'three20/src/Three20UINavigator/Three20UINavigator.xcodeproj', 'name': 'Three20UINavigator.xcodeproj', 'sourceTree': 'SOURCE_ROOT'}


--------------------------------------------------------------------------------
Inspecting your project's Build Settings...

Project :
{   'Debug': {   'ARCHS': '$(ARCHS_STANDARD_32_BIT)',
                 'GCC_VERSION': '',
                 'HEADER_SEARCH_PATHS': [   '$(SDKROOT)/usr/include/libxml2',
                                            '$(BUILT_PRODUCTS_DIR)/../three20',
                                            '$(BUILT_PRODUCTS_DIR)/../../three20',
                                            'three20/Build/Products/three20'],
                 'IPHONEOS_DEPLOYMENT_TARGET': '4.3',
                 'OTHER_LDFLAGS': '-ObjC',
                 'USER_HEADER_SEARCH_PATHS': '(not found)'},
    'Release': {   'ARCHS': '$(ARCHS_STANDARD_32_BIT)',
                   'GCC_VERSION': '',
                   'HEADER_SEARCH_PATHS': [   '$(SDKROOT)/usr/include/libxml2',
                                              '$(BUILT_PRODUCTS_DIR)/../three20',
                                              '$(BUILT_PRODUCTS_DIR)/../../three20',
                                              'three20/Build/Products/three20'],
                   'IPHONEOS_DEPLOYMENT_TARGET': '4.3',
                   'OTHER_LDFLAGS': '-ObjC',
                   'USER_HEADER_SEARCH_PATHS': '(not found)'}}
Targets :
{   'TapcrowdV2': {   'Debug': {   'ARCHS': '$(ARCHS_STANDARD_32_BIT)',
                                   'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
                                   'HEADER_SEARCH_PATHS': [   '$(SDKROOT)/usr/include/libxml2',
                                                              '$(BUILT_PRODUCTS_DIR)/../three20',
                                                              '$(BUILT_PRODUCTS_DIR)/../../three20',
                                                              'three20/Build/Products/three20',
                                                              '$(OBJROOT)/UninstalledProducts/include'],
                                   'IPHONEOS_DEPLOYMENT_TARGET': '4.3',
                                   'OTHER_LDFLAGS': [   '-ObjC',
                                                        '-licucore',
                                                        '-all_load',
                                                        '-Obj-C'],
                                   'USER_HEADER_SEARCH_PATHS': '(not found)'},
                      'Release': {   'ARCHS': '$(ARCHS_STANDARD_32_BIT)',
                                     'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0',
                                     'HEADER_SEARCH_PATHS': [   '$(SDKROOT)/usr/include/libxml2',
                                                                '$(BUILT_PRODUCTS_DIR)/../three20',
                                                                '$(BUILT_PRODUCTS_DIR)/../../three20',
                                                                'three20/Build/Products/three20',
                                                                '$(OBJROOT)/UninstalledProducts/include'],
                                     'IPHONEOS_DEPLOYMENT_TARGET': '4.3',
                                     'OTHER_LDFLAGS': [   '-ObjC',
                                                          '-licucore',
                                                          '-all_load',
                                                          '-Obj-C'],
                                     'USER_HEADER_SEARCH_PATHS': '(not found)'}},
    'TapcrowdV2Tests': {   'Debug': {   'ARCHS': '(not found)',
                                        'GCC_VERSION': '(not found)',
                                        'HEADER_SEARCH_PATHS': [   '$(SDKROOT)/usr/include/libxml2',
                                                                   '$(BUILT_PRODUCTS_DIR)/../three20',
                                                                   '$(BUILT_PRODUCTS_DIR)/../../three20',
                                                                   'three20/Build/Products/three20'],
                                        'IPHONEOS_DEPLOYMENT_TARGET': '(not found)',
                                        'OTHER_LDFLAGS': [   '-framework',
                                                             'SenTestingKit'],
                                        'USER_HEADER_SEARCH_PATHS': '(not found)'},
                           'Release': {   'ARCHS': '(not found)',
                                          'GCC_VERSION': '(not found)',
                                          'HEADER_SEARCH_PATHS': '(not found)',
                                          'IPHONEOS_DEPLOYMENT_TARGET': '(not found)',
                                          'OTHER_LDFLAGS': [   '-framework',
                                                               'SenTestingKit'],
                                          'USER_HEADER_SEARCH_PATHS': '(not found)'}}}


--------------------------------------------------------------------------------
Inspecting Xcode Preferences...

CORDOVALIB: /Users/dwayne/Documents/CordovaLib
Build Location Style: Unique


--------------------------------------------------------------------------------
Inspecting your CordovaLib's Build Settings...

Your project is *NOT* using the CORDOVALIB Xcode variable (source tree).
Path is: /Users/dwayne/Documents/GIT/TapCrowd/src/CordovaLib.xcodeproj 

/Users/dwayne/Documents/GIT/TapCrowd/src/CordovaLib.xcodeproj/project.pbxproj: file does not exist or is not readable or is not a regular file
Traceback (most recent call last):
  File "./diagnose_project", line 216, in <module>
    main(sys.argv)
  File "./diagnose_project", line 183, in main
    cdvPlist = getXcodePlist(cdvlibPbx)
  File "./diagnose_project", line 56, in getXcodePlist
    return plistlib.readPlist( tmpfile )
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 75, in readPlist
    pathOrFile = open(pathOrFile)
IOError: [Errno 2] No such file or directory: '/var/folders/l3/r1ty_l9j1d53kqrkvg97m6r80000gq/T/tmp1tYwUA.xml'
                
> release build via command line tools
> ------------------------------------
>
>                 Key: CB-1614
>                 URL: https://issues.apache.org/jira/browse/CB-1614
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>            Reporter: Dwayne Coussement
>            Assignee: Shazron Abdullah
>             Fix For: 2.3.0
>
>
> When you try to make a release build with the command line tools you get an error like:
> fatal error: 'Cordova/CDVViewController.h' file not found
> #import <Cordova/CDVViewController.h>
> this works perfectly in the normal Xcode GUI environment, should work with the command line tools too

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1614) release build via command line tools

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13483326#comment-13483326 ] 

Shazron Abdullah commented on CB-1614:
--------------------------------------

Also please use this updated script: https://raw.github.com/apache/incubator-cordova-ios/master/bin/diagnose_project
                
> release build via command line tools
> ------------------------------------
>
>                 Key: CB-1614
>                 URL: https://issues.apache.org/jira/browse/CB-1614
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0
>            Reporter: Dwayne Coussement
>            Assignee: Shazron Abdullah
>             Fix For: 2.3.0
>
>
> When you try to make a release build with the command line tools you get an error like:
> fatal error: 'Cordova/CDVViewController.h' file not found
> #import <Cordova/CDVViewController.h>
> this works perfectly in the normal Xcode GUI environment, should work with the command line tools too

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira