ios-simulator

Build Static Library in Xcode 4.6 for Simulator

独自空忆成欢 提交于 2019-12-11 08:27:41
问题 How to build a static library for simulator on Xcode 4.6 ? I've tried "https://github.com/kstenerud/iOS-Universal-Framework". But got an error while using that framework on demo. Error is like: ld: warning: ignoring file /Users/shuvo/test_lib/Demo(V.1)/myProject.lib/libMyProjectLibrary.a, missing required architecture i386 in file /Users/shuvo/test_lib/Demo(V.1)/myProject.lib/libMyProjectLibrary.a (2 slices) Undefined symbols for architecture i386: "_OBJC_CLASS_$_showScreen", referenced from:

SQLite 'no such table' error

冷暖自知 提交于 2019-12-11 08:12:21
问题 I'm noob here but, why is it i'm getting this error? I DO have a table named Team in an SQLite called Team.sqlite! Is there anything else I need to provide? ERROR --------------- 2009-12-23 23:17:05.277 PitScout[6690:207] *** Assertion failure in -[Team addTeam], /Users/******/Desktop/PitScout/Classes/Team.m:90 2009-12-23 23:17:05.280 PitScout[6690:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error while creating add statement. 'no such table

Audio playing in background not working in iOS Simulator

空扰寡人 提交于 2019-12-11 07:56:42
问题 I've seen lots of questions about playing audio in the background. These questions often ask why the audio plays in the background of the simulator, yet the device simply wouldn't. In my case, it's reversed. When I tested my sample app in my iPad, it worked perfectly. However, when I began testing in the simulator, it simply wouldn't continue playing in the background. Here are the codes I used: NSURL *url = [NSURL URLWithString:firstSong]; audioPlayer = [[AVAudioPlayer alloc]

Swift iOS: dyld: dyld_sim cannot be loaded in a restricted process

落花浮王杯 提交于 2019-12-11 07:46:36
问题 I'm making an iOS app for jailbroken devices running iOS 12 or newer. I need my app to run a command line command, so to achieve that I use a custom Objective-C header file which creates the object NSTask and everything it needs, and then, using Bridging Headers I expose it to Swift. So, to run a task I use the following function: func task(launchPath: String, arguments: String...) -> NSString { let task = NSTask.init() task?.setLaunchPath(launchPath) task?.arguments = arguments // Create a

IPad Simulator fine but IPad crashes app when uploading image using WKWebview

笑着哭i 提交于 2019-12-11 06:54:23
问题 Background & Short Summary I am using WkWebview in order to show web pages for my app. I have it so that you can choose an image from camera or photo library. However there seems to be an issue with the app crashing on selecting the image. Specs I am running on IOS 10.0.2 on Tablet , and IOS 10.0 on the simulator using Swift 3. I am running both from XCode 8. On the simulator I am getting an "error" when trying to upload images I get the following message: 2016-10-19 02:15:36.150670 z4[31561

Link errors in Xcode when targeting iPhoneSimulator

大兔子大兔子 提交于 2019-12-11 06:49:20
问题 Update: I just realized that you can get more information by setting the LD_TRACE_ARCHIVES and LD_TRACE_DYLIBS environment variables and then running the linker command directly on the command line. Here is what I am executing and then its output (though I replaced some very long paths and names with <short-text > strings): /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4

Where is the iOS 7 simulator Japanese keyboard dictionary located?

空扰寡人 提交于 2019-12-11 06:42:25
问题 this question is a bit similar to this one. How do I enable the Japanese keyboard on the iPhone simulator? I get it to worked in Xcode 4.6, iOS Simulator 6. Things go all well. But when I upgraded to Xcode 5, iOS Simulator 7, the dictionary is gone... I can't write kanji, or even kana... where has the dictionary gone? How do I make it work in the iOS Simulator (because I don't have the real device) like back there? Edit Note: Ok, don't get it wrong. I changed the keyboard to japanese. Since I

Simulator Freezes at Animation Blocks After Swift 5 / Xcode 11 Update

强颜欢笑 提交于 2019-12-11 06:07:19
问题 I updated my project to Swift 5 in Xcode 11 and now the program freezes at my animation blocks in the iPhone 11 simulator. When I set a breakpoint after the animation it never hits it. Restarting Xcode and the Simulator did not solve the issue. If I run the program on a device it works fine. Any ideas about what's going on? Maybe a memory issue? UIView.animate(withDuration: 1, delay: 0, usingSpringWithDamping: 0.5, initialSpringVelocity: 0.5, options: [UIView.AnimationOptions.curveEaseIn],

Whether Nib(.xib) files can be added to a Static Library?

前提是你 提交于 2019-12-11 05:46:23
问题 I am developing a static library. To implement two main functionalities, I have used totally 4 xibs. I have added those file to the Headers while building the SDK. But while using the SDK in some other project as implementation, I am getting an error like : "Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle" Can anyone give an answer quickly. Do I need to change the view controller? It will be much painful at this time. Thank

Unable to run on simulator with Xcode 9.0

a 夏天 提交于 2019-12-11 05:34:30
问题 I am unable to run on simulator with XCode 9. I am getting this error. Currently I am using macOS Sierra 10.12.6 回答1: You mention you took it through airdrop. You must move the xcode.app to applications folder, then do this: sudo xattr -d com.apple.quarantine /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app You must make the gatekeeper let your xcode and simulator app to continue on using it without verifying it. 来源: https://stackoverflow.com/questions/46239122/unable-to