ios-simulator

Cannot build project with Xcode 12.0 beta 5

拥有回忆 提交于 2021-02-07 14:27:33
问题 I downloaded Xcode 12.0 beta 5 and I'm trying to build my project, but I received the following error: <unknown>:0: error: unable to load standard library for target 'arm64-apple-ios9.0' I tried searching online for solutions, but none of what I found helped me to solve this error. I found this thread on SO but none of the proposed solutions worked for me. I think it's an error related to simulator. In fact, the project builds correctly with generic device and on a real device. 回答1: Your

How to show the xcodebuild command line from xcode?

社会主义新天地 提交于 2021-02-07 12:07:38
问题 I'm trying to build a working simulator build from xcodebuild. Compilation works but the final product won't run on the simulator when installed via WaxSim. If I build through the Xcode GUI then the final product installs without issue from WaxSim. My question is, how can I see the exact xcodebuild command line that xcode is using to build a working simulator build. I just need to copy that into my shell script but it's proving elusive. I did a find in the build logs from xcode but there's no

Reading a file from a hard drive in iPhone simulator

北慕城南 提交于 2021-02-07 06:46:46
问题 Is it possible to read a file (from my normal file system) into a iPhone App running on the iPhone Simulator? I understand that the iPhone itself has not got a (user accessible) file system but this is simply for testing and will only ever be run in the simulator. The file will be a text file that can be edited while the application is running, it will be read every-time a method is called. 回答1: Yes, you can, and it doesn't matter where it is. Just give it an absolute path name when you load

Debugging in XCode - running through code and breakpoints [closed]

会有一股神秘感。 提交于 2021-02-07 02:54:41
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 years ago . Improve this question I would like to know how to debug best in xcode. I know how to set a break point but ideally i would like the simulator to stop and then step through the code... Not step through breakpoints but step through the code line by line so I can see where it goes,

Test Rich Notifications in Simulator

感情迁移 提交于 2021-02-04 07:29:08
问题 I am able to test the normal notifications in Simulator, but when I tried to test rich notifications nothing happens, event title is not getting updated. Could you please assist me, how to proceed. Do I need to change any simulator settings? I am using Xcode 11.4 Sample Payload : { "aps": { "mutable-content": 1, "alert": { "body": "Push notification body", "title": "Push notification title" } }, "media-url": "https://i.imgur.com/t4WGJQx.jpg" } NotificationService Extension Method: - (void

MPPlayableContentDataSource called inconsistently

你说的曾经没有我的故事 提交于 2021-01-28 05:37:02
问题 I am working on implementing support for a CarPlay audio app, and am attempting to display listings in the simulator. I have implemented MPPlayableContentDataSource , but find that it is called inconsistently. It is called the first time the app is launched on a simulator, and if CarPlay is open on launch, I can make the first item display by scrolling up an otherwise empty listing to trigger a redraw. CarPlay does not seem able to call the data source, however, and on a subsequent launch I

xcode_backend.sh: no such file or directory. Do I need to create this file?

大城市里の小女人 提交于 2021-01-27 09:35:39
问题 My Flutter Project won't run on the ios simulator and is throwing this error: Launching lib/main.dart on iPhone Xʀ in debug mode... Running Xcode build... Xcode build done. 7.6s Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED ** Xcode's output: ↳ === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug === /bin/sh: /Users/pinercode/AndroidStudioProjects/bmi-calculator-flutter/packages/flutter_tools/bin/xcode_backend.sh: No such file or directory Could not

Is it possible to do an edge swipe in iOS simulator?

孤人 提交于 2021-01-21 13:43:39
问题 iOS 7 provides for a UIScreenEdgePanGestureRecognizer which detects swipes in from edges of the screen. Can this gesture be simulated using the iOS7 simulator in Xcode? Clicking and dragging outside the screen area just moves the whole simulator frame around. 回答1: You don't have to swipe across the edges to trigger a UIScreenEdgePanGestureRecognizer , just start very close to the edge. It works if I start not more than ~15 points from the edge. (this if for the simulator. I never tested this

Is it possible to do an edge swipe in iOS simulator?

你离开我真会死。 提交于 2021-01-21 13:41:04
问题 iOS 7 provides for a UIScreenEdgePanGestureRecognizer which detects swipes in from edges of the screen. Can this gesture be simulated using the iOS7 simulator in Xcode? Clicking and dragging outside the screen area just moves the whole simulator frame around. 回答1: You don't have to swipe across the edges to trigger a UIScreenEdgePanGestureRecognizer , just start very close to the edge. It works if I start not more than ~15 points from the edge. (this if for the simulator. I never tested this

Editing the iPhone Simulator hosts file

Deadly 提交于 2021-01-20 23:20:21
问题 is it possible to edit the hosts file of the iPhone simulator? I'm working on a REST API and I need to be able to access my local site using a correct domain (e.g. http://api.local.com) 回答1: You can simply edit your Mac's /etc/hosts file and iPhone Simulator will adopt whatever is set there. It works because the iPhone Simulator simply provides a simulated frontend of Mobile Safari's user interface, which just uses your Mac's network settings. 来源: https://stackoverflow.com/questions/3648764