CocoaPods - generated workspace reported as incorrect

Hi,

When I create a project in AppCode and later use CocoaPods for dependency management the generated workspace is reported as incorrect. I can open it in Xcode without any problems.

It's an iOS-project with one dependency like this:

#Podfile
platform :ios
dependency 'SocketRocket'


# Reported error when opening the workspace file
AppCodePodTest.xcodeproj

Expecting tokens LBRACE
position: 39
current token: '' type:          STRING_LITERAL       


Any clue why this is not working?

One more thing. It would be great if AppCode had built in support for CocoaPods :-)

/Anders

7 comments
Comment actions Permalink

Anders,

AppCode currently doesn't support xml-based project files.
To workaround the problem, open it in Xcode and save. After these steps you'll be able to open the project in AppCode.

Please follow http://youtrack.jetbrains.com/issue/OC-2797 for the corresponding bug report.

Regards,
Anton Makeev

0
Comment actions Permalink

Can't get the workaround to work. Just, have to wait for this to be fixed.

0
Comment actions Permalink

Anders,
what error does AppCode show if any?
Try saving the project and Xcode again and check *.xcodeproj/project.pbxproj files format. It should be NS-plist (with curly-braces), not the xml.

0
Comment actions Permalink

It looks like XCode doesn't save podifle project in plist-format.

This is the error I get:

Pods.xcodeproj
Expecting tokens LBRACE
position: 39
current token: "type: STRING_LITERAL
----------------------------------------------------------
?xml version="1.0" encoding="UTF-8"?>


archiveVersion
1
classes

objectV...


/Anders

0
Comment actions Permalink

Anders,

I've just rechecked on Xcode 4.3 - if you change someting in the project to mark it as a changed, Xcode will re-save it in plist format.
Please try chainging and reverting, say Project Format in the Utilities side window, does it help?

0
Comment actions Permalink

Finally I got it working. Reopened workspace, made some changes to both project files (a couple of times) . Thanks!
Will this be fixed in later releases?

0
Comment actions Permalink

Yes, it will be supported in the next major update.
Please follow http://youtrack.jetbrains.com/issue/OC-2797.

0

Please sign in to leave a comment.