Unable to get Three20 script working (ttmodule.py problem) - iphone

Forgive the newbie, but I have been searching for an answer for this for a week or so and starting to give up all hope.
I wanted to use the Three20 project to learn some more about iphone app dev.
I downloaded all the Three20 files via git and was using the script to place all the files in my latest project.
The following script:
python three20/src/scripts/ttmodule.py -p path/to/myProject.xcodeproj Three20
Keeps giving me the following error:
Ricks-Mac:three20 rickyfarr5$ python src/scripts/ttmodule.py -p ../iphonedev/radviewer/viewer/viewer.xcodeproj Three20
ERROR:root:Unable to open the project file at this path (is it readable?): ../iphonedev/radviewer/viewer/viewer.xcodeproj/project.pbxproj
ERROR:root:Unable to open the project file at this path (is it readable?): ../iphonedev/radviewer/viewer/viewer.xcodeproj/project.pbxproj
ERROR:root:Failed to get dependencies.
The project.pbxproj file does exist and is readable
Where am I going wrong?
Hope someone can help. Cheers. Rick.
(Using xcode 3.2.5, iOS4)

My bad.... Bad file path! D'oh!

Related

find project path in derived data folder in xcode 8

i have searched a lot but can not find a helpful link to find project location in derived data folder using swift in xcode 8.
Please help me regarding this issue.
You can run this in the command line using grep, and you'll have the DerivedData build folder of your project.
xcodebuild -project projectName.xcodeproj -showBuildSettings | grep -m 1 "BUILD_DIR" | grep -oEi "\/.*"
You can't get this path with Swift from your app: the "Derived Data" folder is only useful for Xcode, not for your app, which doesn't "see" it at all.
Xcode is the IDE and uses the folder when building your app - but your app is not aware of Xcode or its folders, your app is independent from the IDE.
With xCode, a simple way to the find the Derived Data path is to Build your target.
This does NOT run the target. But you can see the Derived Data folder on your machine.

Where does the iPhone simulator keep it's tmp/ files?

I'm running my iPhone app on the simulator to record my voice. It saves the recording to a .wav file, but I don't know where that is on my machine. Any help?
EDIT 1
Please keep in mind that I'm trying to 'simulate' the experience on a device. So my use of directories is crucial. See my output to the console:
EDIT 2
This is really strange. I just tried to record my voice with the Speak Here example project ('out of the box') and it worked (played back my voice and everything). Yet when I use the finder to try to locate the file... no deals! This is really bizarre. Any ideas?
Try this path /Users/<your_username>/Library/Application Support/iPhone Simulator/. In available dirs there look for /Applications/<your_app>/Documents.
UPDATE (27th Jan, 2013):
If you're OK with Terminal, install awesome ruby gem by Paul Samuels:
http://paul-samuels.com/blog/2012/08/19/ios-simulator-directory-command-line-tool/.
If you're not OK with Terminal, Paul has also created an excellent
workflow for Alfred 2.app: http://paul-samuels.com/blog/2013/01/24/sidir-alfred-workflow/.
If you're having hard time installing Paul's gem, follow this
tutorial: http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-mac.
The location of simulator files has changed in Xcode 6. It's now at:
~/Library/Developer/CoreSimulator/Devices
See this answer for details:
https://stackoverflow.com/a/24291087/2410555
The easiest way in my experience is to output the value of NSTemporaryDirectory() somewhere in your code. That gives you the complete path to the /tmp folder for your user and application.

How to run phone gap with xcode4?

Since moving to XCode4, I have been getting errors like:
/VERSION: No such file or directory
cp: /javascripts/phonegap..js: No such file or directory
cp: /javascripts/phonegap..min.js: No such file or directory
error: /VERSION: No such file or directory
for projects that were working under XCode3.
Open XCodes Preferences, and navigate to Source Trees. If there is no PhoneGapLib entry there, try adding a new setting with the following values:
Setting Name: PHONEGAPLIB
Display Name: Phone Gap Lib
Path: /Users//Documents/PhoneGapLib
Note that the path should be to the location of your PhoneGapLib folder, and that it may not be in your documents folder, depending on how you installed PhoneGap.
I just learned about a great web service recently made available by Nitobi (makes of PG), which will automatically generate the necessary PhoneGap files you need for use in Xcode 4.
Just enter your project name, hit a button and they'll generate a zip file for you to download. This lets you set up a new project without messing with the command line.
You could set up a new project, then migrate your older project files over.
Did you search Google for this error?
I'm a bit of a noob with PhoneGap and Xcode still, but I know there have been recent issues with PG and Xcode 4. Perhaps you're experiencing the same issues as the commenters to this post: PhoneGap + XCode4 (and more specifically, here).

Error while integrating Three20 to an iphone application

I am tring to integrate Three20 to my project. I followed the same instructions given in this page
Three20. But I am getting CANNOT FIND #import "Three20/Three20.h" issue.
Header Search path under Project info > Build i have set as ../three20/Build/Products/three20
Please suggest me what can be the problem in my header search path setting?
Thanks
Deepika
1 - Create your project (for example: SampleApp)
2 - Copy three20 folder into SampleApp folder
3 - Your directory structure will be as followed
|
|
|SampleApp
|---three20
|---SampleApp.xcodeproj
|---other files and folder
4 - In the command line, run this script at the SampleApp directory
python three20/src/scripts/ttmodule.py -p ./SampleApp.xcodeproj Three20
5 - DONE
I was pulling my hair out as well since adding three20 correctly to your new iOS4 with really basic instructions listed here: http://github.com/facebook/three20 did not work as well.
Issue: Can compile newly three20 to your iOS project and got this error: Can't find #import "Three20/Three20.h".
Here is the best solution for those have the same issue:
1) Add your three20 to your iphone project path like this:
[yourProjectPath]/[iOSProjectName]/three20/..
2) cd three20 dir
3) run:
python src/scripts/ttmodule.py -p [yourProjectPath]/[iOSProjectName]/[iOSProjectName].xcodeproj Three20 -c Debug -c Release
4) go to XCode and do a build now.
Thanks to jverkoey for adding this in ...man
u save us a lot of headache if u ever read this :- ) kudos bud! :- )
http://github.com/facebook/three20/commit/0814b1c149cbe987557c88a271f999c3f9f3ae64
Please vote this answers if it help u. Thanks :-)

How to build timidity for iPhone or how pay midi

In my project I should use midi file, but iphone can't play them. I found out that Timidity++ library may be portable to iphone. I downloaded source and tried to build it use build_for_iphoneos.sh script, but always have error - "build_for_iphoneos.sh: line 119: ./configure: No such file or directory".
Any one, please help me!
The file ./configure is missing, check if the file really is missing or if it is in another directory.