简体   繁体   中英

Xcode build fails under Subversion control (using Versions)

I have this Xcode project that I use for building an App Store app (the code is generated by Titanium Appcelerator). So far it's been working fine.

But when I add my project to subversion (using Versions) and check it out, my build starts failing.

The error message thrown by Xcode is:

[ERROR] While reading /Users/ [some long local path] /._startup.png pngcrush caught libpng error

This looks like an image compression error, but I don't have an image named "._startup.png", I do however have one named "startup.png". So that made me look in the .svn/entries file located next to my image, and that has the string "._startup.png" in it.

My question is; How do I solve this?

I want my project under version control using Versions, but it's apparently conflicting with Xcode's build process.

I "solved" the problem by deleting the png from the project, replacing it by a jpg. Then I committed that, cleaned out the project and made a test build, which worked. Then I added the png to the project again and committed that, cleaned the project and rebuilt. That seems to have worked, I don't really know what the problem with the mentioned SVN file might have been.

You should store the original code in svn/Versions. Not the compiled code.

Since you have written the app in Titanium you better also store Titanium code. The generated code is not very usefull and not very maintainable.

Edit:

Apparently you already did that, and this is your answer: https://wiki.appcelerator.org/display/tis/Subversion

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM