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
Simulator
RSS for tagRapidly 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
Since I don't have a compatible MacBook (I have a 2015 Intel MacBook Pro) to test out the new simulator along with Xcode 14. I was thinking to set up an emulator software to test the BETA. Since visionOS is based off iOS, it should run on an ARM-based emulator like QEMU.
Do you guys think it is possible?
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?
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.
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?
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.
I installed Xcode 15 beta 5 as well as the simulator, the iOS simulator runs very very slow, it takes nearly 30 mins to start the device, and after it's started, it's very lag, can anyone help?
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.
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?
=> 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
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?
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 -> 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"
I add my app to ios (16.2) Iphone 14 pro simulator, and simulator returned this error: Failed to find matching arch for input file: /Users/aliyevey/Library/Developer/CoreSimulator/Devices/76BDC6B2-A011-4202-BA6F-E400D1296546/data/Library/Caches/com.apple.mobile.installd.staging/temp.lpSELw/extracted/customer_bank.app/customer_bank
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)
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}
On Xcocde 14.3.1, I cannot rearrange (move) app icons on iPhone simulators.
Anyone experiences this?
Thank you
When I try to use signing with apple with flutter on the simulator, I got the error below
"Authorization failed: Error Domain=AKAuthenticationError Code=-7003 "(null)" and "com.apple.AuthenticationServices.AuthorizationError error 1000."
please how do I resolve this
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.
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?
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