how to run flutter project with release mode in simulator
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
I've noticed some issues in the iOS simulator when reordering elements in a List while the view is in edit mode. The rows will sometimes disappear or repeat. I have verified that the data source is updating after the move but the rows themselves will render strangely, like some rows will be repeated or just disappear entirely. It also doesn't seem to happen on a physical device, just the simulator.
Here is a reproducible example view:
struct ContentView: View {
@State var arr = ["Dan", "Jeffery", "Alice", "Jessica", "Mary"]
var body: some View {
NavigationView {
List {
ForEach(arr, id: \.self) { user in
Text(user)
}
.onMove(perform: { from, to in
arr.move(fromOffsets: from, toOffset: to)
})
}
.toolbar {
ToolbarItem(placement: .navigationBarTrailing) {
EditButton()
}
}
.navigationBarTitleDisplayMode(.inline)
}
.stackNavigationView()
}
}
I built the Xcode project, and in the Products folder, the build is created. I tried dragging and dropping it onto the simulator, and the app got installed. However, when I open the app, it suddenly crashes. I'm not sure what the reason is, although the same app build is working fine on other Mac machines. Note:- I am using a MacBook Pro M1 Max
I tried running the console for this and got these errors:
error 10:04:55.421406+0530 runningboardd <OSLaunchdJob | handle=B74FA3B1-3669-41C9-9BCA-4952DFE273D4>: job failed to spawn, plist={
ProcessType => App
EnableTransactions => false
_ManagedBy => com.apple.runningboard
RootedSimulatorPath => true
CFBundleIdentifier => com.edriving.mentor.business.dev
_ResourceCoalition => app<com.edriving.mentor.business.dev((null))>
ThrottleInterval => 2147483647
MachServices => {}
EnablePressuredExit => false
InitialTaskRole => 1
UserName => mobile
EnvironmentVariables => {
TMPDIR => /Users/abhishek.bhardwaj/Library/Developer/CoreSimulator/Devices/79F383B3-B1EF-442A-9FBB-B9CF818865E9/data/Containers/Data/Application/1C04E6EF-7BBF-4B5A-843F-4850DDB74D92/tmp
HOME => /Users/abhishek.bhardwaj/Library/Developer/CoreSimulator/Devices/79F383B3-B1EF-442A-9FBB-B9CF818865E9/data/Containers/Data/Application/1C04E6EF-7BBF-4B5A-843F-4850DDB74D92
CFFIXED_USER_HOME => /Users/abhishek.bhardwaj/Library/Developer/CoreSimulator/Devices/79F383B3-B1EF-442A-9FBB-B9CF818865E9/data/Containers/Data/Application/1C04E6EF-7BBF-4B5A-843F-<…>}
#error 10:04:55.421451+0530 runningboardd Process start failed with Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" UserInfo={NSLocalizedDescription=Launchd job spawn failed}
#error 10:04:55.421761+0530 runningboardd Job remove after failed start failed with Error Domain=OSLaunchdErrorDomain Code=36 "Operation now in progress" UserInfo={NSLocalizedFailureReason=Operation now in progress}
#error 10:04:55.421780+0530 runningboardd Launch failed with Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" UserInfo={NSLocalizedDescription=Launchd job spawn failed}
#error 10:04:55.423921+0530 sharingd SDAirDropNearFieldService.startNearFieldController SKIP - AirDrop is restricted
#error 10:04:55.423929+0530 sharingd SDAirDropNearFieldService: missing Near field Controller, will not start polling
#error 10:04:55.422339+0530 SpringBoard Bootstrapping failed for <FBApplicationProcess: 0x104d12ed0; app<com.edriving.mentor.business.dev((null))>:> with error: <NSError: 0x600000c04bd0; domain: RBSRequestErrorDomain; code: 5; "Launch failed."> { NSUnderlyingError = <NSError: 0x600000c04e10; domain: NSPOSIXErrorDomain; code: 1> { NSLocalizedDescription = Launchd job spawn failed; }; }
#error 10:04:55.429857+0530 SpringBoard Live host view super view[(null)] not matching container view[<UIView: 0x1067b9000; frame = (0 0; 393 852); clipsToBounds = YES; layer = <CALayer: 0x60000024e440>>], frame not updated
#error 10:04:55.430074+0530 SpringBoard Live host view super view[(null)] not matching container view[<UIView: 0x1067b9000; frame = (0 0; 393 852); clipsToBounds = YES; layer = <CALayer: 0x60000024e440>>], frame not updated
#error 10:04:55.430887+0530 SpringBoard Live host view super view[(null)] not matching container view[<UIView: 0x1067b9000; frame = (0 0; 393 852); clipsToBounds = YES; layer = <CALayer: 0x60000024e440>>], frame not updated
#error 10:04:55.431520+0530 SpringBoard Live host view super view[(null)] not matching container view[<UIView: 0x1067b9000; frame = (0 0; 393 852); clipsToBounds = YES; layer = <CALayer: 0x60000024e440>>], frame not updated
#error 10:04:55.442060+0530 SpringBoard Live host view super view[(null)] not matching container view[<UIView: 0x1067b9000; frame = (0 0; 393 852); clipsToBounds = YES; layer = <CALayer: 0x600
Anyone else having issues where you can see your 3D models in Xcode preview but when running simulator all you see is the progress view spinner? Below is my Model3D load that I can see in preview but in simulator it only shows the spinner. Any suggestions?
import RealityKit
struct Three_D_Ad: View {
var body: some View {
VStack {
Image("Fender")
Text("Fender Stratocaster")
.font(.title)
Text("Legendary Sound")
Model3D(named: "Fender") { model in
model
.resizable()
.scaledToFit()
.scaleEffect(0.75)
} placeholder: {
ProgressView()
}
}
}
}
#Preview {
Three_D_Ad()
}
I am developing an application with React Native, and I need to take screen recordings in the simulators I open with XCode. I am using the recording feature available in the simulators, but it does not capture the sound coming from the simulator and records silently. How can I enable it?
Thanks
Zipzy Games
o
xcode 15.2, mac m2 mini, 14.2.1 sonoma
i need a pdf file to stage my app for screen shots for the market. icloud wont sync, cant drag files to the home screen or any screen, it just does not work.
i am at the end of my rope here, i just need some screen shots, my app is approved and ready
am i wrong>? is there a way to do this or is it just broken now in the name of (lazy) security?
edit--the more i read the more i angry and frustrated i get. this is broken and will not be fixed. i need to just workaround via email. so happy my second 100 dollar developer subscription bill is coming up!
I'm trying some sample with xcodebuild test command for i(Pad)OS simulators, figuring out some strange behavior on simulator initiation.
00:00:38 --------------------------
00:00:38 --- Step: xcode_select ---
00:00:38 --------------------------
00:00:38 Setting Xcode version to /Applications/Xcode/Xcode_15.3_beta_3.app for all build steps
00:00:38 Init simulators ...
00:00:39 $DEVELOPER_DIR
00:00:39 /Applications/Xcode/Xcode_15.3_beta_3.app/Contents/Developer
...
00:05:26 ▸ 2024-02-14 15:13:41.319 xcodebuild[12903:1082819] [MT] IDELaunchReport: 4a4f919bfba30580:4a4f919bfba30580: Finished with error: Simulator device failed to install the application.
00:05:26 ▸ Domain: IXErrorDomain
00:05:26 ▸ Code: 2
00:05:26 ▸ Failure Reason: Failed to locate promise.
00:05:26 ▸ User Info: {
00:05:26 ▸ FunctionName = "+[IXPlaceholder _placeholderForBundle:client:withParent:installType:metadata:placeholderType:mayBeDeltaPackage:error:]";
00:05:26 ▸ IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher;
00:05:26 ▸ SimCallingSelector = "installApplication:withOptions:error:";
00:05:26 ▸ SourceFileLine = 803;
00:05:26 ▸ }
00:05:26 ▸ --
00:05:26 ▸ Failed to set icon promise for com.example.myapp
00:05:26 ▸ Domain: IXErrorDomain
00:05:26 ▸ Code: 2
00:05:26 ▸ Failure Reason: Failed to create promise.
00:05:26 ▸ User Info: {
00:05:26 ▸ FunctionName = "+[IXPlaceholder _placeholderForBundle:client:withParent:installType:metadata:placeholderType:mayBeDeltaPackage:error:]";
00:05:26 ▸ SourceFileLine = 803;
00:05:26 ▸ }
00:05:26 ▸ --
00:05:26 ▸ Placeholder did not exist for UUID 2810E06A-4565-4966-BE98-AE4A6A96D916 when called for -[IXSClientConnection _remote_IXSPlaceholder:setIconPromiseUUID:completion:] by client CoreSimulatorBridge (pid 13037)
00:05:26 ▸ Domain: IXErrorDomain
00:05:26 ▸ Code: 3
00:05:26 ▸ Failure Reason: Failed to locate promise.
00:05:26 ▸ User Info: {
00:05:26 ▸ FunctionName = "-[IXSClientConnection _fetchPlaceholderForUUID:method:andRunWithPromise:error:]";
00:05:26 ▸ SourceFileLine = 1945;
00:05:26 ▸ }
00:05:26 ▸ --
00:05:26 ▸ 2024-02-14 15:13:41.323 xcodebuild[12903:1082819] [MT] IDELaunchReport: 4a4f919bfba30580:4a4f919bfba30580: com.apple.dt.IDERunOperationWorkerFinished {
00:05:26 ▸ "device_model" = "iPhone14,7";
00:05:26 ▸ "device_osBuild" = "16.4 (20E247)";
00:05:26 ▸ "device_platform" = "com.apple.platform.iphonesimulator";
00:05:26 ▸ "dvt_coredevice_version" = "355.23";
00:05:26 ▸ "dvt_mobiledevice_version" = "1643.100.52";
00:05:26 ▸ "launchSession_schemeCommand" = Test;
00:05:26 ▸ "launchSession_state" = 1;
00:05:26 ▸ "launchSession_targetArch" = arm64;
00:05:26 ▸ "operation_duration_ms" = 108400;
00:05:26 ▸ "operation_errorCode" = 2;
00:05:26 ▸ "operation_errorDomain" = IXErrorDomain;
00:05:26 ▸ "operation_errorWorker" = IDELaunchiPhoneSimulatorLauncher;
00:05:26 ▸ "operation_name" = IDERunOperationWorkerGroup;
00:05:26 ▸ "param_debugger_attachToExtensions" = 0;
00:05:26 ▸ "param_debugger_attachToXPC" = 0;
00:05:26 ▸ "param_debugger_type" = 1;
00:05:26 ▸ "param_destination_isProxy" = 0;
00:05:26 ▸ "param_destination_platform" = "com.apple.platform.iphonesimulator";
00:05:26 ▸ "param_diag_MainThreadChecker_stopOnIssue" = 0;
00:05:26 ▸ "param_diag_MallocStackLogging_enableDuringAttach" = 0;
00:05:26 ▸ "param_diag_MallocStackLogging_enableForXPC" = 0;
00:05:26 ▸ "param_diag_allowLocationSimulation" = 1;
00:05:26 ▸ "param_diag_checker_tpc_enable" = 0;
00:05:26 ▸ "param_diag_gpu_frameCapture_enable" = 3;
00:05:26 ▸ "param_diag_gpu_shaderValidation_enable" = 0;
00:05:26 ▸ "param_diag_gpu_validation_enable" = 1;
00:05:26 ▸ "param_diag_memoryGraphOnResourceException" = 0;
00:05:26 ▸ "param_diag_queueDebugging_enable" = 1;
00:05:26 ▸ "param_diag_runtimeProfile_generate" = 1;
00:05:26 ▸ "param_diag_sanitizer_asan_enable" = 0;
00:05:26 ▸ "param_diag_sanitizer_tsan_enable" = 0;
00:05:26 ▸ "param_diag_sanitizer_tsan_stopOnIssue" = 0;
00:05:26 ▸ "param_diag_sanitizer_ubsan_stopOnIssue" = 0;
00:05:26 ▸ "param_diag_showNonLocalizedStrings" = 0;
00:05:26 ▸ "param_diag_viewDebugging_enabled" = 0;
00:05:26 ▸ "param_diag_viewDebugging_insertDylibOnLaunch" = 0;
00:05:26 ▸ "param_install_style" = 2;
00:05:26 ▸ "param_launcher_UID" = 2;
00:05:26 ▸ "param_launcher_allowDeviceSensorReplayData" = 0;
00:05:26 ▸ "param_launcher_kind" = 0;
00:05:26 ▸ "param_launcher_style" = 0;
00:05:26 ▸ "param_launcher_substyle" = 0;
00:05:26 ▸ "param_runnable_appExtensionHostRunMode" = 0;
00:05:26 ▸ "param_runnable_productType" = "com.apple.product-type.application";
00:05:26 ▸ "param_structuredConsoleMode" = 0;
00:05:26 ▸ "param_testing_launchedForTesting" = 1;
00:05:26 ▸ "param_testing_suppressSimulatorApp" = 1;
00:05:26 ▸ "param_testing_usingCLI" = 0;
00:05:26 ▸ "sdk_canonicalName" = "iphonesimulator17.4";
00:05:26 ▸ "sdk_osVersion" = "17.4";
00:05:26 ▸ "sdk_variant" = iphonesimulator;
00:05:26 ▸ }
When I choose iPad 10th Generation, iPhone 14, 14 plus, 14 pro or 14 pro max devices listed on xcrun simctl list it fails with the log above. (doesn't matter what OS version is selected)
Other than those sims it works (I checked it on iPhone SE 3rd gen, ipad mini 6g)
Are those devices excluded from Xcode 15.3 Beta 3? Then why are those on the xcrun simctl list still?
FYI: myapp took -Wl and -ld_classic for OTHER_LDFLAGS option in xcconfig after first app installation crash, still didn't make any changes.
I'm using Visual Studio for Mac 2022, and building for a physical device. This is the same either on Xcode or VS. The always allow button is just gone. Any fixes? searched the web thin.
After installing the iOS 17.2 simulator in Xcode, I encountered a persistent issue where the simulator displays a black screen upon launch and becomes unresponsive. Despite attempting various troubleshooting methods, including reinstalling the simulator, reinstalling Xcode, and erasing simulator data, the problem persists.
Any guidance or suggestions on how to resolve this issue would be greatly appreciated. Thank you.
Scenario: Use code below or similar. Use Xcode simulator or physical device. Have on-screen keyboard hidden. Tap at the end of one of the lowest 5 lines of text that are visible. Using the iPad 10th gen simulator in landscape orientation, this is likely line 14 or so. The on-screen keyboard should have displayed. The text in the TextEditor may scroll up a bit. Using the bottom right key of the on-screen keyboard, dismiss the keyboard. The lines of text after the cursor position are not shown making the TextEditor about half-blank (when in landscape orientation).
How do I avoid this unexpected behavior?
I'm currently using Xcode 15.1. The code below is just test code to demonstrate the issue.
import SwiftUI
let alpha = "abcdefghijklmnopqrstuvwxyz"
let araAlpha = Array(alpha).map { String($0) }
struct ContentView: View {
@State var text = ""
var body: some View {
TextEditor(text: $text)
.padding(60).font(.largeTitle)
.onAppear {
for i in 1 ... 40 {
let n = Int.random(in: 5 ... 20)
text += String(i) + " "
+ araAlpha.shuffled()
.joined().prefix(n) + "\n"
}
}
}
}
Hi! I have been following an iOS App Dev Tutorial to create an app called Scrumdinger. Before creating the app, I installed the iOS 17.2, watchOS 10.2, tvOS 17.2, visionOS 1.0 simulators. Halfway through creating the project, somehow, all the simulators were uninstalled without my instruction. I am unable to now run or build my app in Xcode or open a new simulator. I have attached screenshots. However when I click "Get" to get the simulator, it says I have already installed it. Help me please.
Shaabaz Khan (KoderKhan)
Hello getting error in [installation]
for Xcode 15.3 beta
Thanks
Zippy Games
I just updated to Xcode 15.2 and disk usage increased about 20GB (with macOS 13.6.3). Should this be expected? Are there ways to mitigate this?
In particular, I have only iOS installed, and I see an iOS simulator DMG here (Library > Developer > CoreSimulator > Images) which is 7.35GB. Is it necessary to retain this file?
Thanks!
In Xcode 15.2, I need to select a dictionary to verify that a word is valid. When I go to Settings>General>Dictionary on the simulated iPhone 15 Pro, I get the following message... "Dictionary Unavailable, Connect to the Internet and Try Again". I can go to websites from the Safari app in the simulated iPhone without an issue. How do I fix this? Thanks.
hi everyone does anyone understand this issues below ? What to do or change in my code when this appear my code is over more than 20 swift file I don't know which one to share lol
dyld[1060]: Symbol not found: _$s21DeveloperToolsSupport17UVPreviewRegistryCMn
Referenced from: /private/var/containers/Bundle/Application/ACD0F0D4-CAF4-4101-BFC0-3990E29F316E/MyPmV1.app/MyPmV1
Expected in: /System/Library/Frameworks/DeveloperToolsSupport.framework/DeveloperToolsSupport
I'm experiencing an issue with the Accessibility Inspector. It's worked fine.
Since the update, I'm unable to perform an audit while in the Simulator. I have the following message: "Select a target app to view Accessibility warnings and audit information." However, VoiceOver and Dynamic Type functionalities are working fine.
The audit only works when I test on my iPhone. How can I connect the target for the audit?
Thank you.
Accessibility Inspector V5
Simuator 15.2
Hello
Which Xcode version should I use to test my app on an iPhone simulator with iOS 17.3 (the latest one)?
Thanks
Issue
The documentation for get_app_container mentions the use of group identifier, but that does not seem to be working
Print the path of the installed app's container
Usage: simctl get_app_container <device> <app bundle identifier> [<container>]
container Optionally specify the container. Defaults to app.
app The .app bundle
data The application's data container
groups The App Group containers
<group identifier> A specific App Group container
Steps to reproduce
The following command lists the groups and the respective root paths
% xcrun simctl get_app_container booted com.apple.DocumentsApp groups
group.com.apple.DocumentManager /Users/<username>/Library/Developer/CoreSimulator/Devices/1308FA26-FB67-4582-89B2-37774D0BCBCE/data/Containers/Shared/AppGroup/80B132E9-43A1-490C-89D1-C935523797BA
group.com.apple.FileProvider.LocalStorage /Users/<username>/Library/Developer/CoreSimulator/Devices/1308FA26-FB67-4582-89B2-37774D0BCBCE/data/Containers/Shared/AppGroup/2A5B9F5E-B9DC-42AE-AE12-50257B58F02C
group.com.apple.tipsnext /Users/<username>/Library/Developer/CoreSimulator/Devices/1308FA26-FB67-4582-89B2-37774D0BCBCE/data/Containers/Shared/AppGroup/77292BF1-0ED5-493A-
But using either group.com.apple.DocumentManager or group.com.apple.FileProvider.LocalStorage as the group identifier does not return the root path for the corresponding groups
~ % xcrun simctl get_app_container booted com.apple.DocumentsApp group.com.apple.FileProvider.LocalStorage
Print the path of the installed app's container
Usage: simctl get_app_container <device> <app bundle identifier> [<container>]
container Optionally specify the container. Defaults to app.
app The .app bundle
data The application's data container
groups The App Group containers
<group identifier> A specific App Group container
This issue was also described in a Stackoverflow question about a year ago
I'm trying to develop a watchOS app with location.
I've got the proper privacy settings in the info.plist, similar code works on other devices. (also simulators).
But on watchOS simulators everything is grayed out.
Privacy & Location -> Location Services
App shows up correctly, but everything is grayed out.
I've tried:
Different simulators (with/without paired iPhone)
Different app configurations (Watch-Only app, Watch App with new companion)
Toggling Supports Running Without iOS App Installation.
It's always grayed out!
This is with watchOS 10 simulators across any model, and Xcode 15.2
Any help would be appreciated.