我将版本上传到testflightapp.com以供测试人员使用.我的一些会话内部没有日志,只有开始时间和没有完成时间.要么没有崩溃日志,所以我认为崩溃与此问题无关.我对大多数会话都没有问题,只有一些会议.为什么会这样?
尝试在此处遵循应用内购买的一些安全准则:http: //developer.android.com/guide/market/billing/billing_best_practices.html 我尝试在服务器而不是在服务器上进行签名验证app iteself.我理想情况下喜欢使用php openssl库,它看起来像以下代码应该工作:
$public_key_str = file_get_contents("./pubKey/out");
$public_key_str = trim($public_key_str);
$key = openssl_get_publickey($public_key_str);
if(!$key)
{
echo 'Can\'t get public key';
}
$signature = base64_decode( $signature );
$ok = openssl_verify($data, $signature, $key);
var_dump($ok);
Run Code Online (Sandbox Code Playgroud)
我知道我的签名和公钥都是正确的,但$ ok是0!签名我尝试使用来自应用程序购买包的字符串.猜猜我的钥匙是正确的,问题是签名.当我尝试使用以下命令从base64解码它时:openssl enc -base64 -d -in signature -A> signature.bin,我的字符串与base64_decode()相同.有任何想法吗 ?
UPD:我也不知道我应该在openssl_verify()中传递什么作为$ data?我的数据如下:
$data = '{"nonce":5550262978898439313,"orders":[{"notificationId":"android.test.purchased","orderId":"transactionId.android.test.purchased","packageName":"com.ads.testbilling","productId":"android.test.purchased","purchaseTime":1308224646237,"purchaseState":0}]}';
Run Code Online (Sandbox Code Playgroud) 添加testflight sdk后无法构建项目
Undefined symbols for architecture i386:
"_TFLog", referenced from:
-[IBIZAAppDelegate application:didFinishLaunchingWithOptions:] in IBIZAAppDelegate.o
-[IBIZAAppDelegate application:didRegisterForRemoteNotificationsWithDeviceToken:] in IBIZAAppDelegate.o
-[IBIZAAppDelegate application:didReceiveRemoteNotification:] in IBIZAAppDelegate.o
-[IBIZAAppDelegate application:didFailToRegisterForRemoteNotificationsWithError:] in IBIZAAppDelegate.o
-[IBIZAAppDelegate registerSuccess:] in IBIZAAppDelegate.o
-[IBIZAAppDelegate registerFail:] in IBIZAAppDelegate.o
-[MainViewController viewDidLoad] in MainViewController.o
...
"_OBJC_CLASS_$_TestFlight", referenced from:
objc-class-ref in IBIZAAppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
我正在使用Xcode 4.2.相同的项目通常使用Xcode 4.3在另一台计算机上构建.SDK被添加到所有需要的目标,也尝试了所有解决方案,与此主题相关.
我需要安装php的imagick扩展.我已经安装了Image Magick.然后我做了"sudo pecl install imagick".在此之后,我在控制台中有这样的输出:
安装'/usr/include/php/ext/imagick/php_imagick.h'
安装'/usr/include/php/ext/imagick/php_imagick_defs.h'
安装'/usr/include/php/ext/imagick/php_imagick_shared.h '
安装'/usr/lib/php/extensions/no-debug-non-zts-20090626/imagick.so'
但是当我使用XAMPP时,我的扩展目录(据我所知)是/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626.那么我应该怎么做才能使这个工作,我试图将.so文件放在扩展名dir中并在php.ini中添加extension = imagick.so记录并重启apache,遗憾的是这不起作用.忘了提,我正在使用osX和XAMPP
我想把我的表视图背景放在导航栏下面.当我尝试改变框架时没有任何反应..
UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(100, -100, 320, 480)];
imageView.image = self.theme.bgImage;
[self.tableView setBackgroundView:imageView];
Run Code Online (Sandbox Code Playgroud) 是否有可能构建一个能够获得用户语音邮件的iOS应用程序?据我了解,iOS sdk不提供此类功能.如果是这样,像"YouMail"这样的应用程序是如何做到这一点的?这个应用程序正在与AT&T合作,这个提供商甚至没有任何API来获取语音邮件..
ios ×4
xcode ×4
php ×3
iphone ×2
testflight ×2
android ×1
imagick ×1
macos ×1
objective-c ×1
openssl ×1
pecl ×1
signature ×1
uitableview ×1
voicemail ×1
web-services ×1
xampp ×1