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
# Reported error when opening the workspace file
AppCodePodTest.xcodeproj
#Podfile
platform :ios
dependency 'SocketRocket'
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
请先登录再写评论。
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
Can't get the workaround to work. Just, have to wait for this to be fixed.
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.
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
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?
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?
Yes, it will be supported in the next major update.
Please follow http://youtrack.jetbrains.com/issue/OC-2797.