Simulator

RSS for tag

Rapidly prototype and test builds of your app during the development process using Simulator.

Posts under Simulator tag

200 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

A function declaration without a prototype is deprecated in all versions of C for RCT_EXTERN_MODULE
After updating to xcode 14.3 with RN 0.69.9, my project can't build anymore. It's throwing the error for all of my custom view managers. The error i'm getting is: A function declaration without a prototype is deprecated in all versions of C when I'm using RCT_EXTERN_MODULE Output of npx react-native info: System: OS: macOS 13.4.1 CPU: (8) arm64 Apple M1 Pro Memory: 77.59 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v16.13.1/bin/yarn npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm Watchman: 2023.07.10.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.12.1 - /Users/avarisco/.rvm/gems/ruby-2.7.4/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4 Android SDK: Not Found IDEs: Android Studio: Not Found Xcode: 14.3/14E222b - /usr/bin/xcodebuild Languages: Java: Not Found npmPackages: @react-native-community/cli: Not Found react: 18.0.0 => 18.0.0 react-native: 0.69.9 => 0.69.9 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
0
0
951
Jul ’23
simctl create: invalid runtime for mounted runtime image
I use Xcode 15 beta 5, and downloaded the iOS 17 Beta 4 simulator runtime as an DMG image. The --help message for simctl create says I can use <runtime id> argument to specify the runtime I need, and it says I can supply the /Volumes/.../Runtimes/*.simruntime file: Usage: simctl create <name> <device type id> [<runtime id>] ... <runtime id> Examples: ("watchOS3", "watchOS3.2", "watchOS 3.2", "com.apple.CoreSimulator.SimRuntime.watchOS-3-2", "/Volumes/path/to/Runtimes/watchOS 3.2.simruntime") So, after mounting the image I expect the following to work: $ xcrun simctl create 'iPhone 14' 'iPhone 14' "/Volumes/iOS 17.0 21A5291g Simulator/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.0.simruntime" Invalid runtime: /Volumes/iOS 17.0 21A5291g Simulator/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.0.simruntime But apparently this doesn't work for some reason. Did I miss anything?
0
0
491
Aug ’23
Incorrect Behavior Displayed For visionOS App In Simulator
Hello, I’m working on a visionOS app. It‘s in early stages, but I’m already seeing my app’s UI behave incorrectly in the simulator, though it’s correctly displayed in Xcode’s SwiftUI Preview. My app’s UI size is displaying problems, and does not display its expected size it showed in the SwiftUI Preview. This is how it looked like in SwiftUI Preview, and what I expected it to look like in the visionOS Simulator: https://share.icloud.com/photos/080IVqZ3VeRuw5BgSFysLNasg And this is how it looked like in the simulator: https://share.icloud.com/photos/064Bod9e6_9wrb7tKsL24IEtQ I did not expect this behavior. I’m running the latest Xcode 15 beta on a M1 MacBook Air. Any solutions? Thanks.
4
1
442
Aug ’23
XCUITest Sign in with apple
I'm trying to automate a testing flow in my app, that requires signing in with apple first. I've figure out how open settings and login with a test apple ID. I've wrapped that up in a function and call that first (with a check to see if its already logged in). When I return to my app, and tapping the sign in with apple button, I can't find anyway to interact with the sign in with apple modal, e.g. asking me if I want to share my email address or not, tapping "continue with password" and so on I've tried setting up an interruption handler, but it doesn't get triggered let test = addUIInterruptionMonitor(withDescription: "") { alert in print("inside alert:\( alert )") return true } I've tried checking for springboard alerts, but its not an alert let springboardApp = XCUIApplication(bundleIdentifier: "com.apple.springboard") springboardApp.alerts.exists I don't know any other tricks, or how to find the bundle ID of this popup. Any advice?
1
0
1.1k
Aug ’23
Issue Redeem Offer Code for subscription product
In my Xcode I have created a Product.StoreKit and within that I have a subscription with which has 3 Offer Codes. In PaymentView I am trying to open a Redemption Sheet as follows: if #available(iOS 14.0, *) { paymentQueue.presentCodeRedemptionSheet() } But the Redemption Sheet is Pre-populated with Offer Codes and instead of having a text field to enter Offer Code, user can simply choose from the list of offer codes.
2
0
441
Sep ’23
Xcode 15 beta 5 – iOS 17 Simulator runtime not available
I downloaded Xcode 15 beta 5 and I'm trying to work on my app, but it's having a problem with the simulator. It can't find the runtime I guess. This is the first time I've ran into this. When I try to run, this is what I get: The com.apple.CoreSimulator.SimRuntime.iOS-17-0 simulator runtime is not available. runtime profile not found using "System" match policy Download the com.apple.CoreSimulator.SimRuntime.iOS-17-0 simulator runtime from the Xcode Settings. Not sure what to do here. I also installed the latest iOS 17 developer beta on my device and Xcode doesn't work with that either. I can't help but think the development team forgot something here.
13
8
10k
May ’24
iPad UIScaling
Hello, I spent several days designing an app. Then when it came time to test it on my iPad, the scaling is weird. Based on my research I have to do something with the LaunchScreen. However, there wasn't enough details on that. Can somebody please give me more insight on this? Or give me another solution to properly scaling the UI view?
4
0
464
Aug ’23
iOS 17.0 beta 5 (21A5303d) simulator fails to install
=> Cannot copy the image because the disk is almost full The disk of my Mac is not full. Or is it another logical disk? Every time I try to install the iOS 17.0 simulator (21A5303d) it creates a copy of itself and fails. It is filling my HD and I do not know how to delete those files. And it differs by the last letter. Different versions? Registering simulator runtime with CoreSimulator failed. Domain: DVTDownloadableErrorDomain Code: 29 User Info: { DVTErrorCreationDateKey = "2023-08-09 20:41:08 +0000"; } Cannot copy the image because the disk is almost full Domain: com.apple.CoreSimulator.simdiskimaged.SimDiskImageError Code: 14 --** System Information macOS Version 14.0 (Build 23A5312d) Xcode 15.0 (22004) (Build 15A5219j) Timestamp: 2023-08-09T17:41:08-03:00
14
5
9.2k
Feb ’24
Using a real Siri Remote with tvOS simulator
Hi, In this article here: https://developer.apple.com/documentation/xcode/interacting-with-your-app-in-the-tvos-simulator#Navigate-using-a-physical-remote-control ...it gives steps on how to pair the Siri Remote so that it works with the simulator. However, when I follow the steps, the remote shows up in the Bluetooth list as a "generic device" only labelled by its serial number, and it definitely can't control the simulator. Just me?
0
0
513
Aug ’23
Quasar + Cordova on Xcode emulator
Hi, I'm getting white splash screen I when I build my app on Xcode emulator. Im using Quasar with Cordova. Even on TestFlight app im getting the same problem 2023-08-11 00:47:39.800843+0200 Dreamhubb[7328:381233] Apache Cordova native platform version 6.2.0 is starting. 2023-08-11 00:47:39.800960+0200 Dreamhubb[7328:381233] Multi-tasking -&gt; Device: YES, App: YES 2023-08-11 00:47:39.852613+0200 Dreamhubb[7328:381233] Could not load the "LaunchStoryboard" image referenced from a nib in the bundle with identifier "com.dreamhubb" 2023-08-11 00:47:40.131795+0200 Dreamhubb[7328:381233] The preference key "AllowNewWindows" is not defined and will default to "FALSE" 2023-08-11 00:47:40.133436+0200 Dreamhubb[7328:381233] The preference key "MediaPlaybackAllowsAirPlay" is not defined and will default to "TRUE" 2023-08-11 00:47:40.136344+0200 Dreamhubb[7328:381233] The preference key "InspectableWebview" is not defined and will default to "FALSE" 2023-08-11 00:47:40.136748+0200 Dreamhubb[7328:381233] The preference key "AllowBackForwardNavigationGestures" is not defined and will default to "FALSE" 2023-08-11 00:47:40.136828+0200 Dreamhubb[7328:381233] The preference key "Allow3DTouchLinkPreview" is not defined and will default to "TRUE" 2023-08-11 00:47:40.136893+0200 Dreamhubb[7328:381233] CDVWebViewEngine will reload WKWebView if required on resume 2023-08-11 00:47:40.136948+0200 Dreamhubb[7328:381233] Using WKWebView 2023-08-11 00:47:40.137233+0200 Dreamhubb[7328:381233] [CDVTimer][console] 0.043035ms 2023-08-11 00:47:40.137356+0200 Dreamhubb[7328:381233] [CDVTimer][handleopenurl] 0.033975ms 2023-08-11 00:47:40.138110+0200 Dreamhubb[7328:381233] [CDVTimer][intentandnavigationfilter] 0.694990ms 2023-08-11 00:47:40.138207+0200 Dreamhubb[7328:381233] [CDVTimer][gesturehandler] 0.032067ms 2023-08-11 00:47:40.138275+0200 Dreamhubb[7328:381233] [CDVTimer][TotalPluginStartup] 1.111031ms 2023-08-11 00:47:42.491852+0200 Dreamhubb[7328:381233] The preference key "AutoHideSplashScreen" is not defined and will default to "TRUE"
0
0
369
Aug ’23
Bug on iOS Simulator - Toggle Software Keyboard stopped working
For no apparent reason, my iOS simulator keyboard does not toggle to "on" when I do CMD-K or do I/O > Keyboard > Toggle Software Keyboard in the header bar. The checkmark is never toggled on, no matter how many times I click it or perform CMD-K. Yet "Connect Hardware Keyboard" is toggled "on". What I've tried to fix it: restarting my computer restarting xcode downloading the latest version of xcode trying different simulators I have version XCode Version 14.3.1 (14E300c)
3
0
420
Aug ’23
Xcode 15 b6 - "The network connection was lost" in Simulator
Hello, I'm working on SwiftUI app where I'm trying to access ReST API. When I run may app in Simulator, I'm getting "The network connection was lost", but it's working without issues on physical device. struct ContentView: View { @State var jednotky: Jednotky = Bundle.main.decode("jednotky.json") @State private var isOffline = false var body: some View { NavigationView{ VStack{ List(jednotky.rootLevel, id: \.id) { item in NavigationLink{ SoutezeView(rocnik: 2023, jednotka: item.childId, nazev: item.nazev) } label: { JednotkaRowView(nazev: item.nazev, childId: item.childId, parentId: item.parentId) } } if (isOffline) { Text("Using offline data") } } .navigationTitle("Fotbal") }.onAppear{ Task{ await loadData() } } } func loadData() async { let url = URL(string: JEDNOTKY_URL)! var request = URLRequest(url: url) guard let authData = (USERNAME + ":" + PASSWORD).data(using: .utf8)?.base64EncodedString() else { print("Can't create authorization header") return } request.addValue("Basic \(authData)", forHTTPHeaderField: "Authorization") do { let (data, _) = try await URLSession.shared.data(for: request) if let temp = try? JSONDecoder().decode(Jednotky.self, from: data) { jednotky = temp } } catch { print("Cannot download data, using stored sample instead") isOffline = true } } } The error in console: nw_socket_handle_socket_event [C1.1.1:3] Socket SO_ERROR 9 Connection 1: received failure notification Connection 1: failed to connect 1:9, reason 18 446 744 073 709 551 615 Connection 1: encountered error(1:9) Task <103A0196-6715-429B-A5F2-79698C6E9D45>.<1> HTTP load failed, 0/0 bytes (error code: 18 446 744 073 709 550 611 [1:9]) Cannot download data, using stored sample instead Task <103A0196-6715-429B-A5F2-79698C6E9D45>.<1> finished with error [18 446 744 073 709 550 611] Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={_kCFStreamErrorCodeKey=9, NSUnderlyingError=0x600000c03d50 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={_NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0[802.11], _kCFStreamErrorCodeKey=9, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <103A0196-6715-429B-A5F2-79698C6E9D45>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <103A0196-6715-429B-A5F2-79698C6E9D45>.<1>" ), NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=https://is.fotbal.cz/api/jmobile2/orgJednotky.aspx, NSErrorFailingURLKey=https://is.fotbal.cz/api/jmobile2/orgJednotky.aspx, _kCFStreamErrorDomainKey=1}
3
0
902
Aug ’23
Xcode 15 - 'DYLD 1 Library missing' error when running simulator with iOS 17 beta
Hi everyone! Using my Mac with macOS Ventura 13.5.1 and Xcode 15 beta 7, when I launch my application using a simulator with ios 17, the app crashes with 'DYLD 1 Library missing' error - Library not loaded: /System/Library/Frameworks/NewsstandKit.framework/NewsstandKit. I tried the same using a simulator with iOS 16, and it works ok, but I need to make tests with iOS 17. Anyone has experienced something like that or any suggestions in order to fix this? Thanks in advance for your time and help.
3
0
1.5k
Sep ’23
Issue with keyboard poping up
So I am testing my APP in XCode Beta with the iOS17 beta simulator. All 14 series iPhones have an issue with the keyboard poping up when I try to type in something except for 14 Pro. the error is: -[UIKeyboardTaskQueue lockWhenReadyForMainThread] timeout waiting for task on queue nw_socket_handle_socket_event [C2.1.1:3] Socket SO_ERROR 54 nw_read_request_report [C2] Receive failed with error "Connection reset by peer" -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID Can anyone help me please?
2
3
1.4k
Sep ’23
Apple id account for testing, without 2 factor
I created a fake apple id for testing/automation, but it forced me to setup 2 factor. I need one without 2 factor. There seems to be no way to turn it off, and creating an "app specific password" isn't accepted in places like the simulator settings app, to sign in with Apple id Am I missing something? Is there another process to go through? Is there a way to turn off 2FA? Is there a dummy set of credentials that all simulators will accept to sign in with apple? etc
0
1
532
Aug ’23