13 юни, 2012

"empty character constant" error in Titanium

You are making some mobile app in the Appcelerator Titanium. Everything seems OK (aside some issues with Android/iPhone inconsistency) until you decide to build a distribution for iPhone. Then you may face the following:


error: empty character constant

If this error comes in the autogenerated defines.h file while running the builder.py script, then you should review your code and generally replace all empty strings to comply with the Objective-C directives e.g. from single-quote to double-quote ('' -> "")

This is still a problem in SDK 2.0.3 despite they claim it is fixed in 1.7.4

Няма коментари: