Titanium Appcelerator : iPhone device install error - pnglib - iphone

I'm trying to install an iPhone app to an iPhone using Appcelerator Titanium 1.2.2 with SDK 1.6.2
The app ID matches the profile, runs fine on the simulator, but fails to install to the device with this error:
Install Error:
[DEBUG] While reading /htdocs/titanium/EA/build/iphone/build/Release-iphoneos/EA.app/Default#2x.png pngcrush caught libpng error:
[ERROR] [ERROR] While reading /htdocs/titanium/EA/build/iphone/build/Release-iphoneos/EA.app/Default#2x.png pngcrush caught libpng error:
[ERROR]
[ERROR] Error: Traceback (most recent call last):
File "/Library/Application Support/Titanium/mobilesdk/osx/1.6.2/iphone/builder.py", line 1238, in main
execute_xcode("iphoneos%s" % iphone_version,args,False)
File "/Library/Application Support/Titanium/mobilesdk/osx/1.6.2/iphone/builder.py", line 1012, in execute_xcode
output = run.run(args,False,False,o)
File "/Library/Application Support/Titanium/mobilesdk/osx/1.6.2/iphone/run.py", line 39, in run
sys.exit(rc)
SystemExit: 1
Any clues?
Thanks,
N.

Did you verify the file reading /htdocs/titanium/EA/build/iphone/build/Release-iphoneos/EA.app/Default#2x.png exists?
Also verify it is a PNG file by getting info on the file and make sure it has the extension .png and not something else hidden. You can also open it and save as a png file to hopefully fix the issue?

Related

Cordova header file missing while integrating PhoneGap application in Jenkins

I am trying to integrate a PhoneGap application with Jenkins, but i am getting some error messages in jenkins (and also in Terminal) as the Cordova files has not been found, but in XCode I am not getting any errors
/Users/Shared/Jenkins/Home/jobs/appName/workspace/appName/Plugins/WebAppPlugin.h:9:9: fatal error: 'Cordova/CDVPlugin.h' file not found
#import <Cordova/CDVPlugin.h>
^
1 error generated.
/Users/Shared/Jenkins/Home/jobs/appName/workspace/appName/Classes/AppDelegate.h:30:9: fatal error: 'Cordova/CDVViewController.h' file not found
#import <Cordova/CDVViewController.h>
^
1 error generated.
I tried many solutions from previous posts, nothing helps
Solution 1: "'CDVPlugin.h' file not found" in Cordova as component (Cleaver)
solution 2: 'Cordova/CDVViewController.h' file not found when run in Xcode terminal
Solution 3: PhoneGap Xcode Missing Header files on Build 'Cordova/CDVViewController.h' file not found
Solution 4: still getting <Cordova/CDVViewController.h> file not found error in xcode
Any help is appreciated.

ImageIO: CGImageRead_mapData 'open' failed error = 2 on app start

i made an iphone app and build it with 5.0.
on 5.0.1 it works fine. when i try to open the app on 5.1 or 5.1.1 the app crashes instantly.
in the log there are the following entries:
ImageIO: CGImageRead_mapData 'open' failed '/Applications/myApp.app/Icon.png'
error = 2 (No such file or directory)
libpng error: No IDATs written into file
i opened the folder and Icon.png exists!!
hope someone can help me :/
Please add icon.png in your application plist file under the row icon files.

Will Titanium 1.7.2 work properly on XCode 4.0.2?

The Titanium module works great with Titanium 1.5.1 and XCode 3, but the module does not properly work with Titanium 1.7.1 and XCode 4.0.2. I got the following error:
Error: Traceback (most recent call last):File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.0/iphone/builder.py", line 1139, in main execute_xcode("iphonesimulator%s" % link_version,["GCC_PREPROCESSOR_DEFINITIONS=LOG__ID=%s DEPLOYTYPE=development TI_DEVELOPMENT=1 DEBUG=1 TI_VERSION=%s %s" % (log_id,sdk_version,debugstr)],False)File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.0/iphone/builder.py", line 1057, in execute_xcode output = run.run(args,False,False,o)File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.0/iphone/run.py" line 39, in ru sys.exit(rc)
Why is this type of error occurring?
I would first start by building and running the module Xcode project generated by Titanium CLI. This will allow for you to easily toggle things like the Titanium SDK version for quick comparisons and interactive debugging, as opposed to the more disconnected approach using Titanium Developer.

Appcelerator iPod build problems

I'm using Titanium Studio (1.0.0.201104272233) and Titanium Developer (1.2.2) and have just begun my app development. It builds just fine to the iPhone simulator. Yay! BUT. . . when I attempt to build to the device, I get this error:
[INFO] Performing clean build
[ERROR]
[ERROR] Error: Traceback (most recent call last):
File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.0/iphone/builder.py", line 1306, in main
execute_xcode("iphoneos%s" % iphone_version,args,False)
File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.0/iphone/builder.py", line 1066, in execute_xcode
output = run.run(args,False,False,o)
File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.0/iphone/run.py", line 39, in run
sys.exit(rc)
SystemExit: 65
Here's the full build log: pastie.org
I'm using OSX 10.6.7, Titanium SDK 1.7.0, ios SDK 4.2 (or 4.3). I have xCode3 in /Developer and xCode4 in /xCode4/ and a receding hairline from this issue. I'm trying to build to an iPod touch with software version 4.3.3.
Studio seems to handle the parallel location of xCode4 better than Developer when working on the simulator. I've deleted the build folder a number of times and attempted different ios/Titanium SDKs.
The key to this is that one can use the *.xcodeproject file and go to build the application in xCode. This will give the developer a whole different debugging environment with error messages particular to the iPod/Apple requirements and certifications to get all the settings right. Though they may appear to be correct and accurate in Titanium Studio or Developer, there can still be errors or conflicts. In my case, I had duplicate certificates in my keychain and some errors in my provisioning set up which, as you can see in the log wasn't apparent at all from Titanium Studio or Developer.
Thanks a bunch Brian for your assisting question and guidance.

Python Hello World in PyObjC on iPhone?

I installed the iphone-python package from Cydia, but the HelloPython app closes immediately when I run it from Springboard.
This may be a red herring, but I found the .py file in Terminal and tried to run it with python and got a python error:
$ python /private/var/stash/Applications.pwn/HelloPython.app/HelloPython.py
Traceback (most recent call last):
File "/private/var/stash/Applications.pwn/HelloPython.app/HelloPython.py", line 9, in <module>
import objc
File "/usr/lib/python2.5/objc/__init__.py", line 17, in <module>
_update()
File "/usr/lib/python2.5/objc/__init__.py", line 14, in _update
import _objc
ImportError: dlopen(/usr/lib/python2.5/lib-dynload/_objc.dylib, 2): Symbol not found: _OBJC_CLASS_$_Object
Referenced from: /usr/lib/python2.5/lib-dynload/_objc.dylib
Expected in: /usr/lib/libobjc.A.dylib
I'm running 4.3.3.
How can I get this app working, so I'll have a working example of PyObjC?
Well due to the changes in the way executables on the new ios run, the dynamic library has become corrupt. The mach-o will no longer run due to the upgraded objective-c so a workaround would be to compile pyobjc from source and run normaly. The only ptoblem with that is that the iphone's version of pyobjc is built for uikit so you would need to find saurik's (Jay Freeman) source code and compile it. I might do that for myself so ill post back with a deb file if i do.