Overriding status bar display time for Apple Watch simulator (using xcrun simctl status_bar) - watchkit

I need to override the status bar display time for Apple Watch simulator, so I can take screenshots with the time - 10:09. I am using this command in the terminal to do this but it is not working as expected. The command works fine for iOS simulator though.
xcrun simctl status_bar "Apple Watch Series 5 - 44mm" override --time "10:09"
I do have a simulator with that name (Apple Watch Series 5 - 44mm) running.
How can I override the time for Apple Watch simulator?
Simulator version: Version 11.3.1 (SimulatorApp-912.5.1 SimulatorKit-570.3 CoreSimulator-681.17.2)

I'm having the same issue with Xcode 13.2. When I run the command I get the following error message:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=1):
Status bar overrides not supported on this platform.
Operation not permitted
The only workaround I found was to set my macOS time manually to 9:40, for example. Then, I close the simulator and launch it again so the new time is updated. After your watchOS app finishes loading you have about a minute to take the necessary screenshots.

Related

GLUON Mobile Can't find bundle for base name com.gluonapplication.views.primary

First I am new to the use of GLUON mobile. I have developed an application in JAVAFX which I eventually want to port to an android device. At this stage I have just been reading as much as I can an viewing Gluon tutorials. I have followed the steps as per https://docs.gluonhq.com/#_run_the_application using initially the default MultiViewProjectFXML. hence the default POM.
I have no issues running the app via javafx:run.
When I do a mvn -Pandroid client:build I get the below error in which the path can't be found:
Fatal error:java.util.MissingResourceException: Can't find bundle for base name com.gluonapplication.views.primary, locale en_US
I have no doubt made a finger fault somewhere. I have graalvm-ce-java11-21.0.0 along with Java 11. In one tutorial I noted that when mvn -v was run you see reference to graalvm. I see Java version: 11.0.10, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-11-oracle.
Please let me know if you require any other details in order to assist. Thanks in advance
Output
[com.gluonapplication.gluonapplication:31983] classlist: 2,208.75 ms, 0.96 GB
[com.gluonapplication.gluonapplication:31983] setup: 372.72 ms, 0.96 GB
Fatal error:java.util.MissingResourceException: Can't find bundle for base name com.gluonapplication.views.primary, locale en_US
at java.base/java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:2055)
at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1689)
at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1593)
at java.base/java.util.ResourceBundle.getBundle(ResourceBundle.java:1284)
at com.oracle.svm.util.ModuleSupport.getResourceBundleFallback(ModuleSupport.java:82)
at com.oracle.svm.util.ModuleSupport.getResourceBundle(ModuleSupport.java:58)
at com.oracle.svm.core.jdk.LocalizationFeature.addBundleToCache(LocalizationFeature.java:267)
at com.oracle.svm.core.jdk.LocalizationFeature.addResourceBundles(LocalizationFeature.java:248)
at com.oracle.svm.core.jdk11.LocalizationFeatureJDK11OrLater.addResourceBundles(LocalizationFeatureJDK11OrLater.java:54)
at com.oracle.svm.core.jdk.LocalizationFeature.afterRegistration(LocalizationFeature.java:155)
at com.oracle.svm.hosted.NativeImageGenerator.lambda$setupNativeImage$11(NativeImageGenerator.java:849)
at com.oracle.svm.hosted.FeatureHandler.forEachFeature(FeatureHandler.java:70)
at com.oracle.svm.hosted.NativeImageGenerator.setupNativeImage(NativeImageGenerator.java:849)
at com.oracle.svm.hosted.NativeImageGenerator.doRun(NativeImageGenerator.java:561)
at com.oracle.svm.hosted.NativeImageGenerator.lambda$run$0(NativeImageGenerator.java:476)
at java.base/java.util.concurrent.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1407)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Error: Image build request failed with exit status 1

Why do I get this error with iphone simulator in info.plist?

I am using Swift (Xcode) to create a mobile app. When I want to preview the app through the iPhone simulator (using run & build), I get an error:
error: Multiple commands produce
'/Users/lewishomeoffice/Library/Developer/Xcode/DerivedData/PayUp-bcrlkqerfcqsvkbcmzpfzffcnusg/Build/Products/Debug-iphonesimulator/PayUp.app/Info.plist':
1) Target 'PayUp' (project 'PayUp') has copy command from
'/Users/lewishomeoffice/Desktop/PayUp
Assets/PayUp/PayUp/PayUp/Info.plist' to
'/Users/lewishomeoffice/Library/Developer/Xcode/DerivedData/PayUp-bcrlkqerfcqsvkbcmzpfzffcnusg/Build/Products/Debug-iphonesimulator/PayUp.app/Info.plist'
2) Target 'PayUp' (project 'PayUp') has process command with output
'/Users/lewishomeoffice/Library/Developer/Xcode/DerivedData/PayUp-bcrlkqerfcqsvkbcmzpfzffcnusg/Build/Products/Debug-iphonesimulator/PayUp.app/Info.plist'
Can anyone tell me how to fix this?

Xcode 7.3 and iCloud Drive

I just update Xcode 7.2 to 7.3. My app fetch and store files on icloud drive. If I run app on real device it works fine, if I run in the simulator (logged with my icloud account) the metadataQueryResults returns always 0 files.
Also the system app "iCloud Drive" cannot fetch or save icloud folders and files.
I tried Debug-->Trigger iCloud sync with no luck.
With xcode 7.2 and any simulator running iOS 8.x or greater worked fine.
Is it a xcode 7.3 bug?
Thanks,
Max
The issue is with OS X 10.11.4. Stay at OS X 10.11.3 or use the 10.11.5 beta.
Yes I got the same problem too after getting the latest Xcode 7.2 -> 7.3.
It looks like a problem with Apples background services crashing in the simulator and not telling its client i.e. the iCloud Drive or your app.
Even triggering an iCloud re-sync doesn't sort it so for the time being we have to debug on a real device which is a pain.
Looking in the system log via the simulator (Debug -> Open System Log), I see a lot of Sandbox (bird) access denied messages from the simulator which I guess are related to the issue - there is more info in some e.g.:
Process: bird [597]
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/CloudDocsDaemon.framework/bird
Load Address: 0x1085b8000
Identifier: bird
Version: ??? (???)
Code Type: x86_64 (Native)
Parent Process: launchd_sim [566]
User ID: 501
Date/Time: 2016-04-07 08:28:45.714 +0100
OS Version: Mac OS X 10.11.4 (15E65)
Report Version: 8
Thread 0:
0 libsystem_kernel.dylib 0x000000010aae21fa openbyid_np + 10
1 CloudDocsDaemon 0x00000001086f0664 -[BRCRelativePath _resolveAndKeepOpenMustExist:error:] + 872
etc.
I guess there are some permissions that have not been set on the file system that is used on the Mac backend for the simulator, but I've no idea how or what to change.
Do you get the same errors in your log when trying to use iCloud?
The only other thing I did recently was to install the latest Xamarin Studio, I hope that's not related but I doubt it.
Thanks
Matt

Operation timed out: installing and running app

I'm getting the following error message when I try different operations such as installing an application to a Firefox OS simulator:
Operation timed out: installing and running app
I've tried versions 1.3, 1.4, 2.0 of the simulator - all have the same error.
The application does get deployed to the simulator and runs. However, console.log() output does not get displayed in the WebIDE Console.
For the location of the error message, see the screenshot below
My Firefox Version is - 42.0a1 (2015-07-16)
This is running on Ubuntu 14.04 x64.
When I click on the Troubleshooting link, I can't find any tips for troubleshooting a simulator.
Any ideas?
The steps I followed were:
Open WebIDE. Terminal output:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
Start Firefox OS 2.0 simulator, simulator displays. Terminal output:
console.log: Connection status changed: connecting
console.log: Connection status changed: connected
Project >> Open Packaged App, and select my application. No Terminal output.
Project >> Install and Run. Application displays on simulator. Terminal output:
console.log: Installing app from /home/snowch/tmp/Scratch/myapp/hw_chs
console.log: Starting bulk upload
console.log: File size: 14253
console.log: Bulk upload done
After about 10 seconds the error message is shown as per the screenshot.
Update
The jconsole error messages:
Simulating large screen devices (Operation timed out: installing and running app)
Simulating small screen devices, after clicking on the spanner (Operation timed out: opening toolbox)
It looks like you've run into several bugs with older simulator versions.
For the issue with app install when the screen is set to Via Vixen, I filed bug 1186929. For myself, it only reproduced on 2.0, but please comment in that bug if you have more specifics.
For the "opening toolbox" issue, I believe that is a compatibility problem that needs to be resolved with older simulators, which is bug 1161131.
I tried asking several times in the comments above if you ever actually see the toolbox appear, or if you just get error messages. It would still help to know the answer here.
As a workaround, you should be able to use Simulator 2.2 or later to avoid these issues until they are resolved.

xinit Clutter application not working

I've built a simple test app with clutter: A stage with two ClutterText actors to display two words. It works OK when I run it from within gnome but running it from the tty (not gnome-terminal or xterm) with xinit my_app_binary I get an error:
failed to create drawable
Unable to initialize Clutter: Unable to select the newly created GLX context
Window manager error: Unable to initialize Clutter
If I run xinit gnome-terminal from the same tty everything works, gnome-terminal shows up in a black screen. That's the same I want to do with my app.
Is there anything I can do to overcome this error?
All the above are tested in Linux Mint 12. After normal boot I switch to a tty (ALT-F1) and stop lightdm (sudo /etc/init.d/lightdm stop).
Thanks!
EDIT: running as root everything works, so the question is: how to run it as a regular user?
Be sure to set the DISPLAY-var - add it in front of your command
DISPLAY=:0.0 /path/to/myapp
Sometimes this is an access-rights problem - the app should be started with the user who started the X-server
su user-started-x -c 'DISPLAY=:0.0 /path/to/myapp'

Resources