Sorry to bother, but I guess there might be something wrong. I added a Widget Extension in Xcode 14.2 to my macOS applicaiton the way the official document told me to. However, I found it in surprise that the function of previews is not supported? Quite confusing. Is there something wrong with this implementation?
Diagnotics:
UnsupportedMacAppExtensionTypeError: Widget extensions are not supported
Xcode does not support previews in a macOS Widget extension
extension: AppExtension(bundleIdentifier: "com.louisstudio.WidgetHub.ProjectWidget", displayName: "ProjectWidgetExtension", kind: PreviewsPlatforms.AppExtension.Kind.homeScreen, signingInformation: Optional(Code Signing {
identifier: com.louisstudio.WidgetHub.ProjectWidget
identity: 04FFDADBA91F279D4A0CC823B283DC1115BF09DB
hasGetTaskAllow: false
isSandboxed: true
}))
I haven't modified anything yet. Everything is exactly what the template of a Widget Extension is like.
macOS Version: 12.6.2 (21G320)
Xcode Version: 14.2
Hoping to get help. Thanks.
Related
After I added Storekit to my App SwiftUI-Previews doesn't work anymore. The App itself builds like a charm but all the Previews are broken with the following Error Message:
Code Block
No such module '_StoreKit_SwiftUI'
Does anyone else knows this issues and has an idea on how to solve this?
Here's a temporary fix for Xcode 12 Beta 5. Hopefully it will be fixed in the next version so it can be removed.
Add the following to your build settings:
Architectures
Excluded Architectures
Debug
Simulator - iOS 14.0 SDK arm64
Thank you to:
https://twitter.com/brentdax/status/1297988060462759936
Edit: Probable Bug. Seeking fix or workaround…
How can I get the system’s text styles to be available in the interface builder when using Xcode 11?
I just started using Xcode 11 this week. In the interface builder (storyboard mode), when I go to assign a dynamic type text style to a Label or Button, using the Font -> Style pop-up, all the text styles are missing from the popup menu.
I do have the Dynamic Type “Automatically Adjusts Font” checkbox checked, as well.
I’m not sure if this is a bug, an intentional change I can’t find documentation for, or something else.
The expected behaviour is described in Apple’s developer documentation “Scaling Fonts Automatically”. Specifically, in the “Configuring Text Styles Using Interface Builder” section.
Further exploration: I’ve tried it with new projects, old projects (from Xcode 10), projects targeting iOS 12.2 and 13.1. All had the same problem of no text styles in the popup menu.
I experience the same problem when upgrading from Xcode 11.0 to Xcode 11.1 or 11.2 beta 2:
Xcode 11.0:
Xcode 11.1:
I also filed a bug report (FB7415999) with Apple and also opened an issue with them.
**My curren solution at the moment is a downgrade to Xcode 11.0 for UI development and a parallel install of Xcode 11.2 beta for on device runs **
This is probably a bug in Xcode 11.1. I ran into the same thing and filed a bug with Apple (FB7368959). A colleague running Xcode 11.1 on Catalina did not have the same problem, nor did another running Xcode 11.1 on Mojave.
Here is a workaround that got me back on track: I opened the problematic project in both Xcode 10.3 and 11.2 beta. In both, the dynamic type styles were available in IB. I didn't change anything, but reverted to Xcode 11.1, and now the styles are there, too. Hopefully this works for Grant and anyone else that runs into this annoyance.
Edit Mar. 17, 2020: This problem has reoccurred for me on Xcode 11.3.1. It seemed to happen with a specific project, and the problem spread to a second machine as soon as I opened that project. My workaround didn't help when I opened the project in 11.4 beta 3.
I've started a new iOS project enabling the option to deploy the same app in macOS (Catalyst). But when I try to create a Safari Extension in macOS, I get the following error
'Safari Extension.appex' is a Safari extension, which is not available when building for Mac Catalyst. You may need to restrict the platforms for which this app extension should be embedded in the target editor.
In the target editor Frameworks, Libraries and Embedded Content I've selected only the macOS platform in my Safari Extension, but I get the same error, any clue?
thanks for your time
I've received an answer from Apple
Embedding a Safari App Extension in a Catalyst app currently isn't
supported. If you could file a piece of Feedback in Feedback Assistant
that would be very helpful. Thanks!
https://forums.developer.apple.com/thread/122485
I just recently downloaded the latest public release of Xcode (6.3) and I noticed the storyboard for my app is now low res on my Retina MacBook Pro. Images, text and standard UI elements all appear blurry. On the actual device everything looks fine and code still looks sharp its just while working in the Interface Builder.
Has anybody else noticed this and figured out a way to fix it? This is happening to me in both Swift and Objective-C projects including in Apple's sample projects (Master-Detail Application and etc).
I submitted this as a bug report, and Apple responded by saying that it is the desired appearance. They did not give an explanation, that was all they said.
It appears to be related to a bug in the newest iOS SDK, and as a workaround, they've forced Interface Builder to render everything at 1x. Currently, there doesn't seem to be any solution to this annoying problem other than to wait.
Just installed Xcode version 6.3.2 and this issue appears to have been fixed.
Have you tried re-installation of the same version? That helped once.
Alternatively, can upgrade to newer version, too.
The 'Cocoa Application' template is missing from Xcode 5. Has anyone else encountered this?
The only options are SpriteKit Game, Cocoa-AppleScript Application, and Command Line Tool. I tried to post a screenshot, but I don't have the reputation.
According to Apple's documentation it should be an option:
I've googled, but to no avail. I tried reinstalling Xcode but it's still missing. I'm on Mavericks and using Xcode 5.1.1. Any ideas?
After trying various things including reinstalling xCode, and repairing permissions I created another user account and it did indeed have the cocoa app template in xCode. In the end I reinstalled OS X and xCode and all the templates are there. I'm not sure what the issue with the original user account was but it's all working now. Apologies for not being able to provide a more insightful answer.