Posts

Post not yet marked as solved
1 Replies
642 Views
I have a standalone WatchKit app Applied for and approved for fall detection entitlement Fall detection capability shows up in Developer account and is selected for the App ID When app requests authorization for fall detection, the error "Fall Detection entitlement is required for this API" is emitted and app crashes. I have built a minimal "Hello World" app to reduce the problem to its bare minimum and am able to reproduce it. I have downloaded the mobile provisioning file and done manual signing. When I do this, I get the build warning: Provisioning profile "<AppName> App" for "<AppName>" contains entitlements that aren't in the entitlements file: com.apple.developer.health.fall-detection. To use these entitlements, add them to your entitlements file. Otherwise, remove unused entitlements from your provisioning profile. I have regenerated the AppID's, rebooted Xcode, deleted derived data, etc. After spending many many hours on this, I decided to post this in hopes someone has an answer.
Posted Last updated
.
Post not yet marked as solved
1 Replies
450 Views
Instead of the expected behavior of selecting a dingle word, UITextView will select multiple words in some cases. Example: In Note app, type "United States is great." Double tap "United", it will select "United States". This is a behavior I do not want. How do I get it to just select a single word every time?
Posted Last updated
.
Post not yet marked as solved
1 Replies
754 Views
I want the user to be able to always print the document double-sided without displaying the UIPrintInteractionController. (Quick Print) I setup the printerInfo as follows and then have them select the printer. let printerInfo = UIPrintInfo(dictionary: nil) printerInfo.outputType = .general printerInfo.orientation = .portrait printerInfo.duplex = .longEdge The problems is that it does not always print "duplex" or double-sided if another app has changed the double sided print setting via the UIPrintInteractionController -OR- if a print error occurs, even though I specify duplex int he printerInfo. Is this a bug or a feature? Can I create my own "Printer" locally that only my app uses by duplicating the UIPrinter?
Posted Last updated
.
Post not yet marked as solved
9 Replies
4.8k Views
Command CompileXIB failed with a nonzero exit code.My storyboards asset catalogs and and xib's crash will not compile with XCode 11.1Command CompileStoryboard failed with a nonzero exit codeCommand CompileXIB failed with a nonzero exit code..etc.If I click on one of the said resources, XCode itself will crash.I am not sure what information I can give to help me with this?Additional Information:LI created a new single view project, selected Storyboard instead of Swift UI, and it crashes in the same way. This is with absolutely no alterations by me:CompileStoryboard /Users/work/Projects/Xib\ and\ Asset/Xib\ and\ Asset/Base.lproj/Main.storyboard (in target 'Xib and Asset' from project 'Xib and Asset') cd /Users/work/Projects/Xib\ and\ Asset export XCODE_DEVELOPER_USR_PATH=/Applications/Xcode.app/Contents/Developer/usr/bin/.. /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --errors --warnings --notices --module Xib_and_Asset --output-partial-info-plist /Users/work/Library/Developer/Xcode/DerivedData/Xib_and_Asset-fwmxcfvhwsnyvdclodjxeucsbttk/Build/Intermediates.noindex/Xib\ and\ Asset.build/Debug-iphonesimulator/Xib\ and\ Asset.build/Base.lproj/Main-SBPartialInfo.plist --auto-activate-custom-fonts --target-device iphone --target-device ipad --minimum-deployment-target 13.1 --output-format human-readable-text --compilation-directory /Users/work/Library/Developer/Xcode/DerivedData/Xib_and_Asset-fwmxcfvhwsnyvdclodjxeucsbttk/Build/Intermediates.noindex/Xib\ and\ Asset.build/Debug-iphonesimulator/Xib\ and\ Asset.build/Base.lproj /Users/work/Projects/Xib\ and\ Asset/Xib\ and\ Asset/Base.lproj/Main.storyboard objc[2789]: vm_allocate trampolines failed (268435459) Command CompileStoryboard failed with a nonzero exit code
Posted Last updated
.
Post not yet marked as solved
11 Replies
2.8k Views
iPad OS, Beta 5Adding custom menu items to UIMenuController.shared.menuItems does not work in PDFKit on Beta 5. It does work in UITextView. It used to work in previous OS releases.1. Add menu item(s) to UIMenuController.shared.menuItems2. Select TextResult: Built-in edit menu items appear, but any items added programmatically do not.Expected Result: Both built in and items added programattically appear.SAMPLE Code to demonstrate follows:extension Selector { static let customAction = #selector(ViewController.customAction(menuItem :)) } class ViewController: UIViewController { @objc func customAction(menuItem : UIMenuItem) { print("Custom Action") } override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. let customItem = UIMenuItem(title: "My MenuItem", action: .customAction) UIMenuController.shared.menuItems = [customItem] } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) let path = Bundle.main.path(forResource: "Psych", ofType: "pdf") let pdfView = PDFView(frame: view.bounds) view.addSubview(pdfView) pdfView.document = PDFDocument(url: URL(fileURLWithPath: path!)) } override func canPerformAction(_ action: Selector, withSender sender: Any?) -&gt; Bool { let canShow = action == .customAction print(action.description + " \(canShow)") return canShow } }
Posted Last updated
.