ios-simulator

iPad Simulator WebView/Google Maps API Issue

非 Y 不嫁゛ 提交于 2019-12-13 16:21:01
问题 I've only recently updated XCode to 3.2.2 and started to play with the iPad simulator. I am having an issue with a WebView. I am using it to load a url with a Google Maps API implementation. The map loads and displays properly but when I try and click and drag on it to pan the map around instead of the map being panned the whole webview is scrolled vertically, revealing the dark grey background. When I release it it bounces back into place. Also when I hold the option key down to pinch the

Error running Simulator: duplicate symbol for architecture i386

ⅰ亾dé卋堺 提交于 2019-12-13 16:18:44
问题 I added ShareKit framework to try and here is the error running it in Simulator: duplicate symbol _LFHRReadStreamClientCallBack in .../Xcode/DerivedData/....build/Objects-normal/i386/LFHTTPRequest-8C6F35228BA446B9.o and .../Xcode/DerivedData/....build/Objects-normal/i386/LFHTTPRequest-8ACF920D803FDCA6.o for architecture i386 I looked at previous posts Build Error - missing required architecture i386 in file and tried to edit project.pbxproj commenting FRAMEWORK_SEARCH_PATHS lines out as well

XCode 4.3.2 Won't attach to debugger

会有一股神秘感。 提交于 2019-12-13 16:15:11
问题 I finally upgraded to Lion (from SL & Xcode 4.2). I am now running: Current Lion 10.7.3 Current Xcode 4.3.2 Current Simulator(s) 5.1, 5.0, and 4.3 installed. I've backed way off from my current production apps, and created a simple single view universal hello world app, to try to get some form of simulator debugging working. With my new simple app, I CAN still debug on device, but NOT on any simulator I have installed. It launches the simulator, eventually installs the app under test, but

Trying to play sound through iPhone Simulator

喜欢而已 提交于 2019-12-13 15:27:14
问题 I'm trying to play a sound file from an iPhone program. Here's the code: NSString *path = [[NSBundle mainBundle] pathForResource:@"play" ofType:@"caf"]; NSFileHandle *bodyf = [NSFileHandle fileHandleForReadingAtPath:path]; NSData *body = [bodyf availableData]; NSLog( @"length of play.caf %d",[body length] ); NSURL *url = [NSURL fileURLWithPath:path isDirectory:NO]; NSLog( [url description] ); NSLog( @"%d", AudioServicesCreateSystemSoundID((CFURLRef)url, &soundID) ); The first NSLog is to

Hide iPhone simulator border (non-screen area)?

被刻印的时光 ゝ 提交于 2019-12-13 14:30:58
问题 The useless top and bottom border (black area) is too thick. Is there any way to make them thinner? I wish some kind of small buttons are displayed for the home/power buttons, but this is too large. 回答1: There is no way to adjust the size of the bezels, but if you don't like it, just disable it in the Window menu: Window -> Show Device Bezels 来源: https://stackoverflow.com/questions/46605543/hide-iphone-simulator-border-non-screen-area

Why is app icon white?

▼魔方 西西 提交于 2019-12-13 12:40:24
问题 Some recent version of iOS caused my app icon to turn white. I've gone through everything in regards to images and can't find the issue. I'm running Xcode 3.2.5 with sdk 4.2. I do have an entry for "Icon files" in Info.plist with 5 keys: Item 0 myapp.png Item 1 myapp@2x.png Item 2 myapp-72.png Item 3 myapp-Small-50.png Item 4 myapp-Small.png Item 5 myapp-Small@2x.png All the above have proper dimensions. I see the image in 'Copy Bundle Resources' and also in the .app file for the simulator

Cordova hot reloading on device without Ionic

旧时模样 提交于 2019-12-13 11:36:46
问题 I'm using Cordova without Ionic or any other Framework. My problem is that I don't find any hot reload features or plugins for Cordova without using Ionic. Is there any solution to live reload on the iOS simulator without any frameworks? 回答1: I've implemented a custom way of 'hot reloading' in Cordova. I don't know how original it is but it works well for my needs. In broad lines it works like this: in development mode a static webserver is started and cordova is instructed that the content

What's the difference between real device and simulator/emulator? [closed]

主宰稳场 提交于 2019-12-13 09:46:02
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . Recently in QCon, Gerard Meszaros said that we should run automation tests only on simulators to improve efficiency. We are also considering about the mobile automation test. But I'm not sure if there will be

iOS 4.3 Simulator Localization.strings working in French, but not English

核能气质少年 提交于 2019-12-13 07:06:51
问题 I have just started working on localization of this application. Starting with three tab bar button titles, I have Localization.strings files like these: // English // Tab Bar Controller Buttons "Settings_Tab_Title" = "Settings"; "Results_Tab_Title" = "Results"; "Map_Tab_Title" = "Map"; and // French // Tab Bar Controller Buttons "Settings_Tab_Title" = "Paramétres"; "Results_Tab_Title" = "Résultats"; "Map_Tab_Title" = "Plan"; When I change the device language to French, the proper button

Problem programmatically accessing the iTunes library

无人久伴 提交于 2019-12-13 05:45:53
问题 I built an app that must access the iTunes library. I used MPMediaQuer to retrieve songs from the library as in the following. MPMediaQuery *media = [[MPMediaQuery alloc]init]; NSArray *arr = [media items]; for(MPMediaItem *song in arr) { //To print songs title NSString *title = [song valueForProperty:MPMediaItemPropertyTitle]; NSLog(@"%@", title); } But nothing printed! And I tried to print the count of the arr array and the result is 0 as in the following. NSLog(@"%D",[arr count]); And I'm