Post not yet marked as solved
50
Views
I'm trying to build my app SolarWatch on Xcode Cloud. The setup was amazing. Everything setup and ready to go within 5 minutes. But my builds fail consistently where Xcode Cloud errors out when running the following build step and results in the attached error log screenshot.
Tried both with release and beta environments.
Any help appreciated.
Run command: 'source /Volumes/Task/ci_build.env && source /Volumes/Task/ci_plan.env && xcodebuild archive -workspace /Volumes/workspace/repository/SolarWatch.xcworkspace -scheme SolarWatch -destination generic/platform=iOS -archivePath /Volumes/workspace/build.xcarchive -derivedDataPath /Volumes/workspace/DerivedData -resultBundleVersion 3 -resultBundlePath /Volumes/workspace/resultbundle.xcresult -resultStreamPath /tmp/resultBundleStream3a2d7024-571e-4e16-969d-5b570b91d2a8.json -IDEPostProgressNotifications=YES CODE_SIGN_IDENTITY=- AD_HOC_CODE_SIGNING_ALLOWED=YES COMPILER_INDEX_STORE_ENABLE=NO -hideShellScriptEnvironment'
Post marked as solved
684
Views
I'm having trouble installing the pods in the Podfile for my project.
cocoapods installs without any issues on the system ruby but running pod install crashes out badly.
Did anybody succeed in getting cocoapods to run on the DTK?
Post not yet marked as solved
94
Views
I have an app where I grab a Catalyst UINSSceneViewController and put it as the contentViewController in an NSPopover instance. Then I show it with
@objc private func statusItemClicked(_ sender: NSStatusBarButton) {
DispatchQueue.main.async {
self.popover.show(relativeTo: sender.bounds, of: sender, preferredEdge: .minY)
}
}
This works fine under Big Sur but crashes on Catalina with -[_NSPopoverWindow sceneIdentifier]: unrecognized selector sent to instance
Did anybody manage to show a Catalyst view in an NSPopover in Catalina? Am I doing something wrong?
Post not yet marked as solved
233
Views
Are these error codes documented anywhere?
Error codes 203 and 1110 seems to happen regularly. I think they mean the following:
203: some limit reached (happens very regularly when using server-side speech recognition, less often when using on-device recognition)
1110: no speech detected
I have gotten a new one now: 1107
No idea what that means.
Post not yet marked as solved
1.8k
Views
I have a Widget which can be configured with a location through and Intent.
After updating to Xcode 12 beta 3, when I long tap the widget to pick a location, the widget rotates and only shows "Unable to load"
Anybody else getting this?
Post marked as solved
650
Views
My widget needs to get that from an API to generate its timeline.
In the 3rd video of the Widget Code-Along the presenter says that the in-process foreground URLSessions should work as expected.
My widget gets stuck at placeholder view and never shows the real data.
Everything works fine and the widget renders as expected when I use some dummy data to generate the timeline.
Anybody, any success with fetching data from the Internet in a widget?
Post not yet marked as solved
511
Views
I have a in-house framework that I share between the main app and the widget.
The framework contains some localized strings.
These strings show up in correct language in the main app but on the widget they only show up in English.
I'm guessing the localized strings from the framework are not getting bundled in the widget extension.
Anybody with the same problem?
Post marked as solved
243
Views
My main app supports down to iOS 12 and I'd like to include a WidgetKit extension with my app. Is there a way to optionally include/load this extension such that it only shows up on devices running iOS 14 but the main app still runs on iOS 12?
Post not yet marked as solved
199
Views
I never get .tinted from @Environment(\.complicationRenderingMode).
I can set it in the previewContext() and my complication behaves as expected.
But on the device and simulator the rendering mode is always .fullColor.
Post marked as solved
396
Views
I am building a widget for my app. Everything works as expected when using system fonts.
When I try to use the custom font for my app in the Text instances in my widget, the system shots down my WidgetKit extension because it runs against the 30MB memory limit for Widgets.
I have about 20 Text instances on my Widget. I initialize my font as a fileprivate global: let dinFont = Font.custom("AlteDIN1451Mittelschrift", size: 18)
Then I use Text("blah blah").font(dinFont) when I setup my labels.
When I only style a few text labels the widget renders fine. But when I try to use the font on all of them the widget extension is killed because of 30MB memory limit.
This sounds like, .font(dinFont) is creating a copy of the font instance. Is this the expected behavior?
Post not yet marked as solved
199
Views
Xcode 8.1 beta 3 crashes evey time I try to drag a png file into the sticker pack. Am I holding it wrong?Here is the backtrace:ProductBuildVersion: 8T47
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEInterfaceBuilder/IDEInterfaceBuilder-11535.1/InterfaceBuilderKit/ImageCatalog/Editor/Detail/Overview/Stickers/IBICStickerPackCapsule.m:42
Details: castedInstance should be an instance inheriting from IBICStickerPackCapsule, but it is nil
Object: <IBICStickerPackCapsuleDropOverlay: 0x7fd45c0571c0>
Method: -superview
Thread: <NSThread: 0x7fd453f16560>{number = 1, name = main}
Hints: None
Backtrace:
0 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
1 _DVTAssertionHandler (in DVTFoundation)
2 _DVTAssertionFailureHandler (in DVTFoundation)
3 -[IBICStickerPackCapsuleDropOverlay superview] (in IDEInterfaceBuilderKit)
4 -[NSView _setWindow:] (in AppKit)
5 -[NSView removeFromSuperview] (in AppKit)
6 __NSDictionaryEnumerate (in CoreFoundation)
7 -[IBICStickerPackCapsule createDropOverlays] (in IDEInterfaceBuilderKit)
8 -[IBICStickerPackCapsule updateDropOverlays] (in IDEInterfaceBuilderKit)
9 -[IBICStickerPackCapsule clearDropIndicators] (in IDEInterfaceBuilderKit)
10 -[IBICStickerPackCapsule setDropIndicators:] (in IDEInterfaceBuilderKit)
11 -[IBICStickerPackCapsuleController view:draggingEntered:] (in IDEInterfaceBuilderKit)
12 -[IBICStickerPackCapsuleController view:draggingUpdated:] (in IDEInterfaceBuilderKit)
13 -[IBDefaultDragDelegatingMethods draggingUpdated:] (in IDEInterfaceBuilderKit)
14 -[NSDragDestination _draggingUpdate] (in AppKit)
15 NSCoreDragTrackingProc (in AppKit)
16 DoTrackingMessage (in HIServices)
17 CoreDragMessageHandler (in HIServices)
18 __CFMessagePortPerform (in CoreFoundation)
19 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ (in CoreFoundation)
20 __CFRunLoopDoSource1 (in CoreFoundation)
21 __CFRunLoopRun (in CoreFoundation)
22 CFRunLoopRunSpecific (in CoreFoundation)
23 RunCurrentEventLoopInMode (in HIToolbox)
24 ReceiveNextEventCommon (in HIToolbox)
25 _BlockUntilNextEventMatchingListInModeWithFilter (in HIToolbox)
26 _DPSNextEvent (in AppKit)
27 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] (in AppKit)
28 -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
29 -[NSApplication run] (in AppKit)
30 NSApplicationMain (in AppKit)
31 start (in libdyld.dylib)
Post not yet marked as solved
392
Views
My `MSMessagesAppViewController` subclass only returns `.portrait` from the `supportedInterfaceOrientations` property. This is only called in the compact presentation style and not called and ignored in the expanded presentation style, causing my interface to try to switch to landscape even though it does not make sense in our application. Is there any way to declare that we only support portrait orientation? Or is this working as intended?
Post marked as solved
291
Views
I am having trouble submitting my app with an iMessage extension to App Store.Using Xcode 8b4, I can export my app fine for AdHoc distribution over Hockeyapp.However when I try to use TestFlight, validation fails with "[_NSCFConstantString isFileURL]: unrecognized selector sent to instance…"I have no `isFileURL` calls in my code. I assume this is Xcode internal.Trying to submit the app anyway results in an ITMS-90168 invalid binary error:Anybody having similar issues?
Post not yet marked as solved
601
Views
I get this error sometimes but not always when my extension starts.MobileSMS[39550:1530890] [LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x60000009eeb0 h=-&- v=--& CKMessageEntryView:0x7fb19ac31d50.midX == UIInputSetHostView:0x7fb19ac20170.midX + 187.5 (active)>",
"<NSAutoresizingMaskLayoutConstraint:0x60000009eff0 h=-&- v=--& CKMessageEntryView:0x7fb19ac31d50.width == UIInputSetHostView:0x7fb19ac20170.width + 375 (active)>",
"<NSLayoutConstraint:0x608000288930 CKMessageEntryView:0x7fb19ac31d50.right == UIInputSetHostView:0x7fb19ac20170.right (active)>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x608000288930 CKMessageEntryView:0x7fb19ac31d50.right == UIInputSetHostView:0x7fb19ac20170.right (active)>Anybody else? That seems like an internal bug, right? Or am I doing something wrong?