I downloaded the source code, typed 'make oxp' then I got a file named 'c-client.a', I think it is for X86.
But how can I build this library for iPhone OS (device)?
For command-line compilation for iPhone, you can look at:
http://iphonesdkdev.blogspot.com/2009/07/how-to-compile-command-line-utility-for.html
Command line compiling an iPhone Application
Related
I'm getting this error running my app on a simulator or device: [ERROR] : Script Error Couldn't find module: ti.storekit. The device shows a red screen with the same error. I have unzipped the module into ~/Library/Application Support/Titanium/modules/iphone/. In that directory I now have ti.storekit/3.0.0/. I have this in my tiapp.xml:
<module platform="iphone" version="3.0.0">ti.storekit</module>
I've trolled google, this site, and the appcelerator forum and found no solutions that work for me.
Titanium SDK: Titanium Command-Line Interface, CLI version 3.4.0, Titanium SDK version 3.4.0.GA
Platform & version: iOS 6.1
Device: iPod 5
Host Operating System: OSX Mavericks
Titanium Studio: 3.4.0.201409261227
I don't see anything else relevant in any logs but I am happy to post anything. Anybody have any ideas? Thanks for your time.
https://github.com/appcelerator-modules/ti.storekit
download this module and add it in module directory of titanium studio.
I think the problem was a second empty modules tag in the tiapp.xml file.
I am using mailcore2 in my ios app from fetching my gmail account emails on my device. I have changed the ios sdkversion from 6.1 to 6.0 in the mailcore2 scripts bcz I am trying to compile and run the app using iPhone simulator 6.0 which uses ios sdkversion 6.0. Doing so I am getting the following clang error.
clang: error: no such file or directory: '/Users/shujaat/Library/Developer/Xcode/DerivedData/MyTestApp-ditognlaoajwldfliplqecnxqbfj/Build/Products/Debug-iphonesimulator/MailCore/MailCore'
While trying to compile and run my app using iphone simulator 6.1 (uses ios sdk 6.1), with no changes in the ios sdk version in the shell scripts, I am getting the following error:
/bin/sh /Users/shujaat/Documents/WemoTech/Products/WantList/sourcecode/ThirdPartyLib/MailCore2/Externals/builds/workdir/20130930192723/src/libetpan/build-mac/update.sh
configuring
running prepare-cyrus-sasl.sh
prepare sources
patching file lib/client.c
building tools
generated makemd5i386 properly
building for iPhoneOS - armv7
CONFIGURE FAILED
Command /bin/sh failed with exit code 1
These issues are driving me crazy for the last couple of days. Need your help.
Go to your main project target->"Build phases"->"Target dependencies" add mailcore2 ios
You need to read Check Adding MailCore to Your iOS Project carefully.
These issues are fixed now. I want to explain what I did to get rid of them for others facing same issues:
I made a separate project, and made mailcore2 as a part of it (didn't include the #import line in any of the project files at first). I compiled and run the project and copied the resultant mailcore 2 from it to my original project. It's compiling and running fine now.
I'm using CorePlot in my project by adding the project file directly in the project. When I compile it for simulator it is fine, but when I try to compile it for the real device it says:
"clang: error: no such file or directory:
'/Users/t2wu/Library/Developer/Xcode/DerivedData/HRM-fqohcvzyvosuqmerfynaixyulpta/Build/Products/Debug-iphoneos/libCorePlot-CocoaTouch.a'"
What could be the problem? I'm using iPhone 4S with iOS 6 SDK with architecture set to Standard(armv7, armv7s) for both the super project and the embedded CorePlot.
In Target Project Build Setting Make Buidl Architecture Only = YES. This will solve your problem.
Clang is the compiler. Make sure you have a libCorePlot-CocoaTouch.a file in your project.
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.
I want to create a mobilesubstrate plugin for iPhone OS 3.2 or I tried to setup toolchain on the iPad device.
I have installed the iphone-gcc_4.2-20090304-1-9_iphoneos-arm package and all the relevant packages from Cydia, but when it comes to compiling the simplest source file shows the following error:
arm-apple-darwin9-g++ -I /var/toolchain/sys/ -c -dynamiclib ExampleHookLibrary.mm -o ExampleHookLibrary.o
arm-apple-darwin9-g++: Internal error: Bus error (program cc1objplus)
Please submit a full bug report.
See <URL:http://developer.apple.com/bugreporter> for instructions.
make: *** [ExampleHookLibrary.o] Error 1
Is it because the iphone-gcc doesn't yet support this device or am I missing anything here? Thanks.
Try iPhone 3.0 Toolchain from TheWorm repository (http://cydia.theworm.tw/), it works for me like a charm. You'll also need the headers from iOS SDK 3.0...3.2.2, and the binary frameworks (extensionless dylib's) also from the SDK.
Bus error is a different form of a segmentation fault. The toolchain is broken in some way.
This script automatically setup iphone toolchain for you, runs on Mac OS X, thanks to #rpetrich. http://gist.github.com/403608
First, remember to
apt-get remove iphone-gcc
before running this thing on your mac, if you don't want to collect headers files from iphone sdk, follow the Darwin arm part of the script and I think you should be good.
try "iphone 2.0 toolchain" form bigboss