pxl格式的iphone程序包,可以直接通过91手机助手安装到真机,很方便,介绍一下制作方法。

1. 新建一个目录 $appname

2. 在$appname目录下,新建文件夹 PkgScript和文件PxlPkg.plist

3. 将包XXX.app文件夹内容复制到$appname目录下,我一般连上真机,winscp下载 (/var/mobile/applications下)

4. 步骤2中的PxlPkg.plist 文件格式见附录。

5. chmod -R 755 *    后再 zip ../weibolu.pxl -r ./*

修改$appname目录下所有文件的属性,并打zip包 。(这一步在mac下做,或者在windows的cygwin下做)

6. 完毕。如果装了91 iphone助手,双击pxl包就能安装

 

附录: PxlPkg.plist 文件格式

<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE plist PUBLIC “-//Apple Computer//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd“[]>
<plist version=”1.0″>
    <dict>
        <key>CFBundleIdentifier</key>
        <string>Reweibo.Weibolu</string>
        <key>RDPxlPackageFiles</key>
        <array>
            <dict>
                <key>destination</key>
                <string>/Applications/weibolu.app</string>
                <key>overwrite</key>
                <true />
                <key>permanent</key>
                <false />
                <key>source</key>
                <string>weibolu.app</string>
            </dict>
        </array>
        <key>RDPxlPackagePostflight</key>
        <array>
            <array>
                <string>chown</string>
                <string>-R</string>
                <string>root</string>
                <string>/Applications/weibolu.app</string>
            </array>
            <array>
                <string>chmod</string>
                <string>-R</string>
                <string>775</string>
                <string>/Applications/weibolu.app</string>
            </array>
        </array>
        <key>RDPxlPackageDesc</key>
        <string>微波炉</string>
        <key>RDPxlPackageFormat</key>
        <string>1</string>
        <key>RDPxlPackageName</key>
        <string>Weibolu</string>
        <key>RDPxlPackageVersion</key>
        <string>0.1</string>
        <key>RDPxlPackageIcon</key>
        <string>weibolu.app/icon.png</string>
        <key>RDPxlPackageFireware</key>
        <string>3.0,3.1</string>
    </dict>
</plist>

Posted in 未分类 at 10月 12th, 2009. No Comments.

1. 新建一个目录 $appname

2. 新建文件夹 Payload和文件iTunesArtwork (注意大小写,iTunesArtwork由图标文件改名得到)

3. 包XXX.app文件夹内容放到Payload下,我一般连上真机,winscp下载 (/var/mobile/applications下)

4. 修改XXX.app下的Info.plist,现在的Info.plist一般都是二进制文件了。可以用专门的工具(叫做pledit)修改。其实自己建一个文本格式的文件也能正常工作。格式见附录。

5. 将$appname里的内容,用winrar压缩,选择zip格式,后缀名直接改为.ipa即可。

6. 可以用iTunes同步到真机了。注意真机必须做一下同步非appstore ipa的破解。

附:Info.plist格式

<?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd“>
<plist version=”1.0″>
<dict>
 <key></key>
 <string></string>
 <key>CFBundleDevelopmentRegion</key>
 <string>English</string>
 <key>CFBundleDisplayName</key>
 <string>Weibolu</string>
 <key>CFBundleExecutable</key>
 <string>Weibolu</string>
 <key>CFBundleIdentifier</key>
 <string>com.yourcompany.Weibolu</string>
 <key>CFBundleInfoDictionaryVersion</key>
 <string>6.0</string>
 <key>CFBundleName</key>
 <string>Weibolu</string>
 <key>CFBundlePackageType</key>
 <string>APPL</string>
 <key>CFBundleResourceSpecification</key>
 <string>ResourceRules.plist</string>
 <key>CFBundleSignature</key>
 <string>????</string>
 <key>CFBundleVersion</key>
 <string>1.0.1</string>
 <key>DTPlatformName</key>
 <string>iphoneos</string>
 <key>DTSDKName</key>
 <string>iphoneos2.0</string>
 <key>LSRequiresIPhoneOS</key>
 <true/>
 <key>MinimumOSVersion</key>
 <string>2.0</string>
 <key>NSMainNibFile</key>
 <string>MainWindow</string>
 <key>SignerIdentity</key>
 <string>Apple iPhone OS Application Signing</string>

</dict>
</plist>

别的不太重要,粗体部分的是<key>SignerIdentity</key>
 <string>Apple iPhone OS Application Signing</string>
必须的。

 

Posted in 未分类 at 10月 12th, 2009. 1 Comment.

1. 新建一个view based的项目

2. 在info.plist中增加一项:

<key>UIInterfaceOrientation</key>

<string>UIInterfaceOrientationLandscapeRight</string>

3. View- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {

    // Return YES for supported orientations

    return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);

}

4. 在interface builder中,点选窗口右上角的旋转图标,把窗口视图转成水平的。

做完第二步,预览程序状态栏已经是横屏的了,不过,坐标还不是。第三步的代码加上就好了。

Posted in iphone开发 at 04月 14th, 2009. No Comments.

作者:手机即信息 博客:http://canco.javaeye.com

有空我会自己整理一份相关资源。这篇纯转贴,当然,希望大家同时记住小站: http://www.iu1u.com/

1. iPhone手机介绍
首先需要了解和破解iPhone手机,下面一个帖子介绍很详细:
iPhone最权威 [入门] [破解] [扫盲] [资源] [修砖] 总汇帖
http://www.weiphone.com/thread-41690-1-1.html

iPhone手机手册的中文翻译
http://down.tgbus.com/soft/16820.shtml

2. Unix常见命令
iPhone手机的操作系统是Mac OS X,内核是unix,所以可以iPhone手机上运行unix命令。
http://www.weiphone.com/thread-15894-1-1.html

3. Windows平台上iPhone开发环境搭建
见笔者的文章《Windows平台上iPhone基于cygwin开发环境的搭建方法》,文件链接:
http://canco.javaeye.com/admin/blogs/199106

4. Toolchain和iPhone SDK
Toolchain与官方iPhone SDK的比较请见文章:
《比较官方iPhone SDK和开源工具链》,文章链接:http://www.cocoachina.com/index.php/archives/cocoachina_149.html
iPhone SDK介绍和分析
见西西河的AllenKids先生的2篇文章:
iPhoneSDK观察 - 舞姿飘忽,苹果的探戈
http://www.20ju.com/content/V19377.htm
iPhone SDK 观察二:舞台宽广,才能跳得欢畅
http://www.cnbeta.com/articles/55055.htm

iPhone SDK, Toolchain, Windows Mobile, SymbianOS S60的比较
http://www.rsslite.com/post/1889.html

iPhone用户界面指导原则
http://www.20ju.com/content/V22381.htm

5. iPhone开发语言:Objective-C
iPhone原生程序开发语言主要是用Objective-C语言,如果你熟悉C/C++语言,则能很快掌握Objective-C。Objective-C语言主要要理解可变参数,Categories, Posing, Protocols等特性。
Objective-C初學者指南(繁体)
http://www.otierney.net/objective-c.html.zh-tw.big5Objective-C语法快速参考
http://www.cocoachina.com/index.php/archives/cocoachina_122.html
Learn Objective-C
http://cocoadevcentral.com/d/learn_objectivec/

The Objective-C 2.0 Programming Language
http://developer.apple.com/iphone/(注:需要注册为apple会员才可以下载)

6. iPhone开发书籍、文章和源代码
由iPhone开发和破解领路人Jonathan Zdziarski著作,最最重要、最值得推荐和唯一的开发书籍《iPhone Open Application Development》,可通过google下载电子版。

Creating an iPhone Application
iPhone OS Overview
iPhone OS Programming Guide
iPhone Human Interface Guidelines
Cocoa Fundamentals Guide
http://developer.apple.com/iphone/(注:需要注册为apple会员才可以下载)

Lucas Newman 的18页iPhone开发PDF教学
http://lucasnewman.com/phonedev.pdf

學習怎樣在 iPhone/iPod Touch 上開發自制遊戲全記錄
http://www.weiphone.com/thread-81192-1-2.html

CocoaChina整理的开源iPhone程序不完全列表
http://www.cocoachina.com/index.php/archives/cocoachina_143.html

几个源码例子
http://lucasnewman.com/phonedemos.zip

7. iPhone论坛和网站
平果开发中文站-最好的中文iPhone开发网站!
http://www.cocoachina.com/

苹果官方的开发网站:
http://developer.apple.com/iphone/

Weiphone
http://www.weiphone.com/index.php

苹果fans成立的网站:
http://apple4.us/

Posted in iphone 资讯 at 03月 7th, 2009. No Comments.

在Amazon上可以查看书得信息了,大部分是可预定,但是无库存状态。

The Essential Guide to iPhone Application Development for Flash Users (Paperback)
The Essential Guide to iPhone Application Development for Flash Users
—————————————————————————

iPhone Advanced Projects (Paperback)
iPhone Advanced Projects
—————————————————————————
Programming the iPhone User Experience (Paperback)—————————————————————————
iPhone User Interface Design Projects (Paperback)
iPhone User Interface Design Projects

—————————————————————————
iPhone Games Projects

Programming the iPhone User Experience

iPhone Games Projects

—————————————————————————
iPhone Cool Projects: Ten Great Development Projects for Your iPhone (Paperback)
iPhone Cool Projects: Ten Great Development Projects for Your iPhone

Posted in iphone 资讯 at 03月 7th, 2009. 1 Comment.