当苹果审核遇到 invalid binary 的解决办法

上传碰到invalid binary,网络上提供很多方法。但是其实最重要的方法就是查看email。还是写下几点要注意的

1,上传Icon资源文件是否正确

2,Entitlements.pllist文件是否正确

3,上传binary中有私有API

最后一点其实最重要的,但是包括stackoverflow在内的网站都告诉你可能是Icon错误。这个时候要去查看email。苹果并不会在itunesconnect中给你答案。

Share
Posted in iphone, Uncategorized at November 15th, 2011. 1 Comment.

如何发布破解的应用

1,找到以下路径 /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS(version number).sdk/SDKSettings.plist 。修改文件中的CODE_SIGNING_REQUIRED的值为NO。跳过使用code provision。(注明version number 为sdk的版本号码)

2,xcode中的code signing identity不使用任何的code signing。

3,下载ldid可执行文件,放在/usr/bin/目录下。下载链接

4,复制一份Release配置,命名为Cydia。

5, xcode中的target 添加run script 。脚本如下

 

 

if [ ${CONFIGURATION}='Cydia' ]; then

echo ${TARGET_BUILD_DIR}/${TARGET_NAME}.app

/usr/bin/ldid -S ${TARGET_BUILD_DIR}/${TARGET_NAME}.app/${TARGET_NAME}

fi

 

Share
Posted in Uncategorized at November 14th, 2011. No Comments.

发布读书工具类应用bookcamp

Bookcamp是由linwaiwai编写的一个书籍工具类的“小清新”iphone应用。能够方便的查看书籍的线上信息。帮助文青挖掘优秀书籍。该应用现提供内测版本。希望广大文青会稀饭这个。安装要求:jailbreak,version 3.2 or above。希望大家给我提出你的宝贵意见。

Lastest:

附上网盘下载链接:http://vdisk.weibo.com/s/xhTQ

update 20100806:

附上网盘下载链接:http://vdisk.weibo.com/s/vdv_/1312366483

update 20100810:
1.fix some ui
2.add the comment animation
附上网盘下载链接:http://vdisk.weibo.com/s/vYPe

update 20100818:
1.modify the style of root
2.add simple load-balance of api 
3.add more btn to the like module. 
4.draw the shadow of book cover . 
附上网盘下载链接:http://vdisk.weibo.com/s/xhTQ

 

Share
Posted in bookcamp at August 29th, 2011. No Comments.

how to use TTAreaStyle to create label style with icon

 

TTAreaStyle is a utility style class depend on three20.(please follow this link ttareastyleforthree20 ) It enhances the style of three20 for it could create an independent rect for other styles drawn on it. You can create some more complex style for TTView .Such as , a label with a icon in the front of it or a view with separated segments with different style. for example ,look at the imgs showed below.



usually , we may be adopt the method  creating a view with a UIImageView and a Label added to it . when there is a single exception , for saving time ,we feel free to use it . Honestly and personally , I have to say , it is a ugly method .I was thinking , is there any cheap way to implement it . The style of Three20 make it achievable. All you want to do just is appending a style to a view inherited from TTView. Here , I used TTLable.



- (TTLabel*)authorLabel {
if (!_authorLabel) {
_authorLabel = [[TTLabel alloc] initWithFrame:CGRectMake(0, 0, self.width - 2 * BookSummaryViewMargin, 0)];
_authorLabel.style = TTSTYLE(bookSummaryAuthorStyle);
_authorLabel.backgroundColor = [UIColor clearColor];
[self addSubview:_authorLabel];
}
return _authorLabel;
}



In the Global stylesheet  , adding this,



-(TTStyle*) bookSummaryAuthorStyle{
CGFloat timeIconWidth = 10;
CGFloat timeIconHeight = 12;
return
[TTAreaStyle styleWithBlock:^(CGRect rect ,id data){
return CGRectMake(0, (CGRectGetHeight(rect) - [[data objectAtIndex:0] floatValue]) / 2 , 10, 12);
}
data:[NSArray arrayWithObjects:[NSNumber numberWithFloat:timeIconWidth],
[NSNumber numberWithFloat:timeIconHeight],nil]
style:
[TTImageStyle styleWithImageURL:@"bundle://time.png" next:nil]
next:
[TTBoxStyle styleWithPadding:UIEdgeInsetsMake(0, 20, 0, 0) next:
[TTTextStyle styleWithFont: [UIFont systemFontOfSize:14]
color: RGBCOLOR(128,128,128)
minimumFontSize: 0
shadowColor: RGBCOLOR(171,171,171)
shadowOffset: TTSTYLEVAR(photoCaptionTextShadowOffset)
textAlignment: UITextAlignmentLeft
verticalAlignment: UIControlContentVerticalAlignmentCenter
lineBreakMode: UILineBreakModeCharacterWrap
numberOfLines: 6
next: nil]]];
}


With TTAreaStyle ,  I creat a independent area which you could draw anything you like . Here , i added 


[TTImageStyle styleWithImageURL:@"bundle://time.png" next:nil]


And then , shrinked  the origin draw area  by using 


[TTBoxStyle styleWithPadding:UIEdgeInsetsMake(0, 20, 0, 0) next:


It's worth nothing that  the param rect in the block wil let you know the size of TTLabel which other style don't offer. It 's a amazing characteristic that help you calculate the position of  elements in the independent area . Off course . do nesting if necessary.


^(CGRect rect ,id data){ }


Share
Posted in iphone at August 29th, 2011. No Comments.