ios-simulator

Keep App directory the same when building for iPhone Simulator?

偶尔善良 提交于 2019-12-02 07:57:41
问题 I'm building an iPhone app, and my app copies a bunch of resources to the App's Documents directory on first install. While I'm developing the app, I simply modify files in the App's Documents directory for the iPhone Simulator to make it easy to test out things without having to rebuild the app. But when I do rebuild the app, the App's GUID, which is used in it's installation directory name, is changed, and any files I had opened are now pointing at an invalid directory. So in short, is

All Animation are executing slowly

对着背影说爱祢 提交于 2019-12-02 07:32:18
问题 I'm not sure what happened to the animation process. Suddenly my all animations are executing slowly. I've reset my Simulator , restarted my Mac , but doesn't help. I'm not sure what I've done or its a system issue. Please check the below image. Every animation is executing slowly. I'm using Xcode7.3.1 , Simulator iOS 9.3 . Its a simple pushViewController and nothing 回答1: This is just a minor problem. I think You have just checked the Slow Animation in simulator by mistake. All you have to do

scrollable div is not working in android emulator,iphone simulator

妖精的绣舞 提交于 2019-12-02 06:40:45
问题 I am using phonegap. I want to keep a fixed header and footer,and i want to scroll the content in between them. For that i used div with: div { width: 249px; height: 299px; background-color:Gray; overflow-y: auto; } style. But the div is not scrolling. But in browser it is fine. 回答1: iOS doesn't allow scrolling within an element (div with overflow:scroll/auto or frames) so you can either design your site around that (usually for the best) or you can try iScroll, which is a javascript plugin

Xcode 6 iOS Simulator (iPad2, iPhone5) now Release Mode now running x86_64. Debug i386

你离开我真会死。 提交于 2019-12-02 06:33:07
问题 Just noticed the Simulator for the devices that do not run arm64 (so iPhone4/5, iPad 2, which should be running i386 simulator) runs x86_64 in the simulator for release mode now in Xcode 6 by default. To clarify: Debug mode still calls i386 for these simulator targets... so weird. Noted in the build log: clang++ -arch x86_64 This is a bit of an issue testing for older projects that only compiled vs the old i386/i686 architecture for release mode. Anyone have any idea how to make it run in

Audio file not working on device but it is working on simulator

让人想犯罪 __ 提交于 2019-12-02 06:32:13
I am playing audio in iphone app but problem is that it works fine on simulator but it is not working on device here is my code it just closes the app when this code runs. NSString*thePath=[[NSBundle mainBundle] pathForResource:fileName ofType:@"MP3"]; NSURL*url=[NSURL fileURLWithPath:thePath]; //NSURL *url = [NSURL URLWithString:@"http://celeritas-solutions.com/pah_brd_v1/productivo/1.mp3"]; mp = [[MPMoviePlayerViewController alloc] initWithContentURL:url]; [[mp moviePlayer] prepareToPlay]; [[mp moviePlayer] setUseApplicationAudioSession:NO]; [[mp moviePlayer] setShouldAutoplay:YES]; [[mp

how to keep the iphone simulator application directory be the same when run it everytime

試著忘記壹切 提交于 2019-12-02 06:09:46
问题 i met a problem with iphone simulator application directory, when i run the application everytime, the name of application directory was changed each of time,can anyone tell me how to keep a static application directory ? 回答1: i'm going to take a guess here and say.. you don't need a static directory. I think what you need is to get the 'base directory' programatically. NSString *docsDirectory = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];

Corrupted stack/heap under debugger when simulating?

…衆ロ難τιáo~ 提交于 2019-12-02 06:00:19
问题 I'm using Xcode 6.3.1. I'm trying to track a weird issue in an app and now I'm seeing that local variables seem to be incorrectly initialised. When I hit a breakpoint at the line where a local variable is defined and initialised at the same time, it is actually shown as an existing local variable, but with a corrupt value: Has anyone else seen this? In another run the variable was actually showing in the variable view as being an NSDate !!! 回答1: A breakpoint is actually before the line it

Keep App directory the same when building for iPhone Simulator?

自闭症网瘾萝莉.ら 提交于 2019-12-02 05:43:09
I'm building an iPhone app, and my app copies a bunch of resources to the App's Documents directory on first install. While I'm developing the app, I simply modify files in the App's Documents directory for the iPhone Simulator to make it easy to test out things without having to rebuild the app. But when I do rebuild the app, the App's GUID, which is used in it's installation directory name, is changed, and any files I had opened are now pointing at an invalid directory. So in short, is there anyway to force the App's GUID to be constant when installing to the iPhone simulator? This would

SwiftUI: Error in dragging logic or is this a bug?

余生颓废 提交于 2019-12-02 05:10:23
问题 SwiftUI is in beta, so maybe this is a bug, but I've seen something like this working in others YouTube videos so perhaps it's not, the test is pretty simple. I'm creating a circle I can drag around on horizontally. import SwiftUI struct ContentView : View { @State private var location = CGPoint.zero var body: some View { return Circle() .fill(Color.blue) .frame(width: 300, height: 300) .gesture( DragGesture(minimumDistance: 10) .onChanged { value in print("value.location") print(value

Select an appropriate iOS version from simulators list in XCode 6.0.1

怎甘沉沦 提交于 2019-12-02 05:07:15
问题 I've recently installed XCode 6.0.1 complete version and it came with default iOS 8 simulators. My current project is targeted to iOS 6 , so I did copy old iOS simulators into new XCode (as I did it before with old versions of XCodes ). But in the simulators' list I can't distinguish the appropriate iOS version. I don't know which of them iOS 6 or iOS 8 . Below paths are where I copied old simulators from and into respectively /Applications/Xcode 5.1.1.app/Contents/Developer/Platforms