Post not yet marked as solved
Posting this again so I can include the image.
I think I've found it. Quite possibly my project includes some legacy code or otherwise... i.e. Intel based. I'll have to look into that. under the PRODUCT menu, go down to DESTINATION. I had to change the Destination Architectures to Show Both. After doing this "My Mac (Rosetta)" was then showing back in Product --> Destination from the dropdown menu.
Post not yet marked as solved
I've got the same error.
macOS App. and I've tried to build and run on Apple Silicon.
I don't see "My Mac" as an option - only "Any Mac (Intel)"... which of course this mac is an M2.
the build architectures include Apple Silicon.
There must be some setting I have missed.
Oh... BTW, I have created a new app from scratch (i.e. built in default) and it builds and runs successfully. So it must be something misconfigured my legacy app.
Post not yet marked as solved
I believe I have my code working again.For the record I had edited the Options... and removed two relating to iCloud. I had to put those changes back in again. options = @{NSMigratePersistentStoresAutomaticallyOption: @YES, // Key to automatically attempt to migrate versioned stores
NSInferMappingModelAutomaticallyOption: @YES, // Key to attempt to create the mapping model automatically
NSPersistentStoreUbiquitousContentNameKey: @"my_DataStore", // Option to specify that a persistent store has a given name in ubiquity.
NSPersistentStoreUbiquitousContentURLKey: icloudURLForLogs, // Option to specify the log path to use for ubiquitous content logs.
NSPersistentHistoryTrackingKey: @YES
};- David
Post not yet marked as solved
I've got the same issue. Were you able to resolve this?- David
Post not yet marked as solved
The code below is for macOS, iOS should be the same. I'm using this to detect a camera being plugged into a Mac. mDeviceBrowser = [[ICDeviceBrowser alloc] init];
mDeviceBrowser.delegate = self;
mDeviceBrowser.browsedDeviceTypeMask = ICDeviceLocationTypeMaskLocal|ICDeviceLocationTypeMaskRemote|ICDeviceLocationTypeMaskShared|ICDeviceLocationTypeMaskBluetooth|ICDeviceTypeMaskCamera;
// ICDeviceLocationTypeMaskLocal = 0x00000100,
// ICDeviceLocationTypeMaskShared = 0x00000200,
// ICDeviceLocationTypeMaskBonjour = 0x00000400,
// ICDeviceLocationTypeMaskBluetooth = 0x00000800,
// ICDeviceLocationTypeMaskRemote = 0x0000FE00
[mDeviceBrowser start];To see all of this in full flight, take a look at the mac sample app for this called CameraBrowser.https://developer.apple.com/library/archive/samplecode/CameraBrowser/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007761https://developer.apple.com/library/archive/samplecode/SimpleCameraBrowser/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009232I found two sample apps...Hope that helps.- David
Post not yet marked as solved
Update.I have subsequently performed a build for 10.15... this has changed the behaviour of the application and deviceDidBecomeReady: is now called.2019-11-10 20:15:41.988835+1300 Moments[39041:357763] deviceDidBecomeReady:
ICCameraDevice <0x10065c160>:
delegate : <0x600003901110>
deviceRef : 0x10000035
connectionID : 0xe3440b0c
deviceID : 0x0200000c
name : Canon EOS Kiss X6i
locationDescription : ICDeviceLocationDescriptionUSB
iconPath : /System/Library/Image Capture/Support/Icons/GenericCamera.png
softwareInstallPercentDone : 100.000000
modulePath : /System/Library/Image Capture/Devices/PTPCamera.app
moduleVersion : (null)
moduleExecutableArchitecture : 0
type : 0x00000101
UUIDString : 00000000-0000-0000-0000-000004A9323B
persistentIDString : 00000000-0000-0000-0000-000004A9323B
autolaunchApplicationPath :
capabilities : ICCameraDeviceCanTakePictureUsingShutterReleaseOnCamera
ICCameraDeviceCanTakePicture
ICCameraDeviceCanDeleteOneFile
ICCameraDeviceCanAcceptPTPCommands
shared : NO
transportType : ICTransportTypeUSB
usbLocationID : 0x14500000
usbProductID : 0x323b
usbVendorID : 0x04a9
usbIntefaceClass : 0x00
usbInterfaceSubClass : 0x00
usbInterfaceProtocol : 0x00
timeOffset : 0.000000
hasConfigurableWiFiInterface : N/A
isAccessRestrictedAppleDevice : NOThe call to "requestTakePicture" seems to have no affect. I am teathered to the camera.2019-11-10 20:16:25.322309+1300 Moments[39041:357763] takePicture: Canon EOS Kiss X6i hasOpenSession = 1
2019-11-10 20:16:25.322342+1300 Moments[39041:357763] takePicture: Canon EOS Kiss X6i isTeathered = 1
2019-11-10 20:16:25.322377+1300 Moments[39041:357763] takePicture: Canon EOS Kiss X6i canTakePicture = 1
2019-11-10 20:16:25.322411+1300 Moments[39041:357763] takePicture: Canon EOS Kiss X6i canTakePictureUsingShutterReleaseOnCamera = 1- David
Post not yet marked as solved
I've just changed my minimum OS from 10.11 to 10.12This altered the behavious of the software running under 10.15 and caused the session for the device be to opened!I still cannot take a picture from the Mac, but it's a big step forward. I have subsequently increased the min OS version to 10.15... there's not change in picture taking behaviour.Anyway I thout that the feedback was worthwhile providing.- David
Post not yet marked as solved
I have the same issue on 10.15.2 Beta (19C32e)My software works under 10.14@erobin> it seems to work as if a session is opened correctlyWhat do you mean by this? Is there a different way to open a device?- David