iPhone:在AppStore提交应用程序后出现问题
我已向 AppStore 提交了我的第一个 iPhone 应用程序(2010 年 9 月 10 日),我刚刚发现它已“准备出售”(2010 年 9 月 18 日)。经过短暂的快乐之后,我在我的应用程序中发现了一些问题,当我使用 XCode 将其安装在我的 iPhone 上时,我没有这些问题:
1) 我的应用程序使用 CLLocationManager 来获取 GPS 坐标。我已经测试过它并且工作得很好,但是从 AppStore 下载我的应用程序后,我注意到我的应用程序没有获得任何坐标。通常,在我的 iPhone 上安装需要获取 GPS 坐标的新应用程序后,iOS 会询问我是否允许该应用程序这样做,但在我的应用程序中,iOS 不会问我这个问题。我错过了什么吗? PS:当我将我的应用程序提交给审核流程时,我没有选择表明我的应用程序“需要位置服务”的选项(我的 Info.plist 中的 UIRequiredDeviceCapability)。你认为这是一个错误吗?
2)我有一些“布尔按钮”。当用户单击按钮时,它会发出声音。但在AppStore版本中,它不会发出任何声音(甚至连拍照时拾取器发出的声音也听不到)。这是我的方法:
- (void) playMCSound:(BOOL)release {
//Get the filename of the sound file:
NSString *path;
if (release) {
path = [NSString stringWithFormat:@"%@%@",
[[NSBundle mainBundle] resourcePath],
@"/releaseClick.wav"];
} else {
path = [NSString stringWithFormat:@"%@%@",
[[NSBundle mainBundle] resourcePath],
@"/cllick.wav"];
}
//declare a system sound id
SystemSoundID soundID;
//Get a URL for the sound file
NSURL *filePath = [NSURL fileURLWithPath:path isDirectory:NO];
//Use audio sevices to create the sound
AudioServicesCreateSystemSoundID((CFURLRef)filePath, &soundID);
//Use audio services to play the sound
AudioServicesPlaySystemSound(soundID);
}
这个方法有问题吗? (正如我所说:当我使用 XCode 安装应用程序时它可以正常工作)
顺便说一句,我的应用程序是“KA Feedback”。但它仅在德国可用。
我将不胜感激任何建议。
I've submitted my first iPhone App to the AppStore (on 10.09.10) and I have just found out that it was "Ready For Sale" (18.09.10). After a short moment of deep Happiness, I've found out some problems in my App, that I DO NOT have when I install it on my iPhone using XCode:
1) My APP uses the CLLocationManager to get the GPS coordinates. I've already tested it and it works very well, but after downloading my App from AppStore, I've noticed that my App DOES NOT get any coordinates. Normally, after installing a new App on my iPhone, that needs to get the GPS coordinates, the iOS asks me if I want to allow that App to do so, but in the case with my App, the iOS does not ask me that question. Am I missing something?
P.S.: As I submitted my App to the Review-process I did NOT select the option which says that my App "needs the location services" (UIRequiredDeviceCapabilities in my Info.plist). Do you think this was a mistake?
2) I have some "boolean buttons". When the user clicks on the button, it makes a sound. But in the AppStore version, it does not make ANY sound (even the sounds the picker makes when a picturen is taken can not be heard). Here is my method:
- (void) playMCSound:(BOOL)release {
//Get the filename of the sound file:
NSString *path;
if (release) {
path = [NSString stringWithFormat:@"%@%@",
[[NSBundle mainBundle] resourcePath],
@"/releaseClick.wav"];
} else {
path = [NSString stringWithFormat:@"%@%@",
[[NSBundle mainBundle] resourcePath],
@"/cllick.wav"];
}
//declare a system sound id
SystemSoundID soundID;
//Get a URL for the sound file
NSURL *filePath = [NSURL fileURLWithPath:path isDirectory:NO];
//Use audio sevices to create the sound
AudioServicesCreateSystemSoundID((CFURLRef)filePath, &soundID);
//Use audio services to play the sound
AudioServicesPlaySystemSound(soundID);
}
Is something wrong with this method? (as I said: it works normally when I install the App using XCode)
My App is "KA Feedback", by the way. But it is only available in Germany.
I would appreciate any suggestion.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于#1,检查应用程序名称旁边的位置服务设置,如果位置权限是“打开”或“关闭”,则它可能处于关闭位置。
对于#2,虽然这可能听起来很愚蠢,但我首先要问的是,当您使用 iPod 应用程序时,音量是否调大了?我说的不是铃声音量,而是音频应用程序的音量。首先检查一下。如果它确实是非静音的,那么检查您的发行版本,releaseClick.wav(我认为应该加载的)存在,并且正在被复制到应用程序包中。
With respect to #1, check in the location services settings next to your app name, if location permission is "on" or "off", it's probably in the off position.
And for #2, while this may sound really silly, I have to ask that first, is the volume turned up when you're in say, the iPod app? I'm not talking about the ringer volume, but the volume of audio apps. Check that first. If it is indeed non-mute, then check in your distribution build, that releaseClick.wav (which is what I presume is supposed to be loaded) exists, and is being copied into the app bundle.