[
https://issues.apache.org/jira/browse/CB-1122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13458794#comment-13458794
]
Carlos Santana edited comment on CB-1122 at 9/20/12 3:18 AM:
-------------------------------------------------------------
I was able to fix this problem by updating my build script.
I added to my .app creation command line the following
CONFIGURATION_BUILD_DIR=${myApp.ios.out.release}/build
Where ${myApp.ios.out.release} is the xcode main project folder where
myApp.xcode is located.
What will this do is force main project and subproject (i.e CordovaLib) to
build in the same location.
The variable CONFIGURATION_BUILD_DIR to both project build settings.
Here is the example of the command I use to build .app and ipa ( I have a
modify project because I moved the CordovaLib subproject inside the main
project)
xcodebuild" -sdk iphoneos" -verbose -project myApp.xcodeproj -target
myApp-configuration
ReleaseCONFIGURATION_BUILD_DIR=${myApp.ios.out.release}/build
'CODE_SIGN_IDENTITY="iPhone Developer"' build
xcrun" -sdk iphoneos PackageApplication ${myApp.ios.out.release}/build/MSM.app
-o ${myApp.ios.out.release.ipa} -verbose
I hope this helps
was (Author: csantana):
I was able to fix this problem by updating my build script.
I added to my .app creation command line the following
CONFIGURATION_BUILD_DIR=${msm.ios.out.release}/build
Where ${msm.ios.out.release} is the xcode main project folder where myApp.xcode
is located.
What will this do is force main project and subproject (i.e CordovaLib) to
build in the same location.
The variable CONFIGURATION_BUILD_DIR to both project build settings.
Here is the example of the command I use to build .app and ipa ( I have a
modify project because I moved the CordovaLib subproject inside the main
project)
xcodebuild" -sdk iphoneos" -verbose-project myApp.xcodeproj-target
myApp-configuration
ReleaseCONFIGURATION_BUILD_DIR=${myApp.ios.out.release}/build
'CODE_SIGN_IDENTITY="iPhone Developer"' build
xcrun" -sdk iphoneos PackageApplication ${myApp.ios.out.release}/build/MSM.app
-o ${myApp.ios.out.release.ipa} -verbose
I hope this helps
> Compile errors when building for Archive
> ----------------------------------------
>
> Key: CB-1122
> URL: https://issues.apache.org/jira/browse/CB-1122
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 2.0.0
> Reporter: Shazron Abdullah
> Assignee: Shazron Abdullah
> Fix For: 2.1.0
>
> Attachments: Archive-tmq.zip, header.png
>
>
> On Tue, Jul 24, 2012 at 4:45 PM, Michael McCabe <[email protected]>
> wrote:
> > I'm having the same problem. I tried installing Cordova-2.0.0.pkg before
> > running the create script and am still getting the errors of missing
> > CDVViewController.h (in AppDelegate.h and MainViewController.h) only when
> > archiving.
> >
> > Has anyone gotten the build to work after installing the pkg? I'm running
> > XCode 4.2, mac-os 10.6.8 and ios sdk 5.0, btw.
--
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