Xcode 7.3 and iCloud Drive - ios-simulator

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

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

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

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.

Connecting Centos 7 to Android phone

I'm trying to connect a Centos 7 operating system to a Moto3G Android phone (running Android v6 - marshmallow)
libmtp is installed
Package libmtp-1.1.6-5.el7.x86_64 already installed and latest version
Nothing to do
Most of the searches on the Internet suggest using mtp-detect but in my case:
bash: mtp-detect: command not found
I can see the phone using dmesg
[ 6446.771306] usb 1-1.2: Product: XT1039
[ 6446.771309] usb 1-1.2: Manufacturer: motorola
I installed jmtpfs (using yum) which gives me the following
jmtpfs
No mtp devices found.
I tried installing go-mtpfs using GO but get the following
$ ./gopath/bin/go-mtpfs bob &
[1] 21633
$ 2017/05/03 13:06:18 detect failed: no MTP devices found
[1]+ Exit 1 ./gopath/bin/go-mtpfs bob
If anyone has any advice or suggestions on progressing this I'd be grateful.
Access Android MTP or Other MTP devices in CentOS 7 Linux OS
Install mtp libs and utilities in CentOS
Login as root and install fuse, jmtpfs, libmtp as following:
$yum install fuse, jmtpfs, libmtp
Steps to Mount/Load MTP formatted devices(e.g android 7 nougat)
Login as root Create a directory to mount MTP device:
$mkdir /media/mtp-device
Connect android device to the USB cable, Unlock the android phone, Swipe down from the top of the phone screen. You
should see a notification "USB ...", Tap that notification. You should
see a menu titled "Use USB to...", select "Transfer files(MTP)" Option...
To list all the available mtp devices(eg.
android 7 nougat), issue command jmtpfs in root session
$jmtpfs -l
each mtp device is listed with busnum, devnum information. Mount
device as below:
$jmtpfs -device=<busnum>,<devnum> /media/mtp-device #If this option not specified, then the first device found isused.
or
$jmtpfs /media/mtp-device #All files will be present in /media/mtp-device location,but it will be accessible to the root only.
2. Access/Copy Data from MTP device
Now you can access files of android devices mounted on
/media/mtp-device folder, but you cannot copy to other folder. To copy
files, you need to allow other user as below:
$jmtpfs -o allow_other ~/my-android7
Now you can copy the data from ~/my-android7 location to your folders.
3. Removing or Un-mounting the Device from Linux System
First un-mount the allow_other location
$fusermount -u ~/my-android7
Finally un-mount the device at root folder.
$fusermount -u /media/mtp-device

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.

Plone 4.1 Mac Snow Leopard 32-bit install problems

UPDATED: Took everyone's advice and decided plone.app.registry and 4.1.1 were not the issue, question is, what is? Where can I find the error logs in binary installer?
symptom: can't add content types (under Add New... folders, pages, news items, etc. -- hangs on save, more specifically my portal_factory is unable to validate and move the content to ZODB).
had same issue using both unified (4.1) and binary (4.1) installers
environment: mac book 10.6 Snow Leopard 32-bit
When I run buildout I see no errors:
2012-05-08 18:13:34 INFO ZServer HTTP server started at Tue May 8 18:13:34 2012
Hostname: 0.0.0.0
Port: 8080
2012-05-08 18:14:01 WARNING ZODB.FileStorage Ignoring index for /Applications/Plone/zinstance/var/filestorage/Data.fs
2012-05-08 18:14:27 INFO Zope Ready to handle requests
When I create a new site in Plone, Terminal says: http://pastie.org/3882025
Line 23: 2012-05-08 18:16:01 INFO GenericSetup.plone.app.registry Cannot find registry
That's not an error - that's what happens whenever you start up an instance with a new Data.fs file. If there's no Data.fs.index, or the .index file is inconsistent with the Data.fs, the existing one is ignored and the index is rebuilt. It means absolutely nothing on a new install.
There must be more information than this in the log.
Fixed this issue by following this post here: http://plone.293351.n2.nabble.com/Add-new-Plone-site-creates-site-with-JS-problems-4-1-4-tt7547774.html#a7555663
Basically, had to go to javascript registry, save, empty cache, restart browser, testing in Chrome only.

Resources