Search results for

xcode github

92,013 results found

Post

Replies

Boosts

Views

Activity

Reply to Webview crashes when instantiating shared workers in IOS 16.1
Hello @mauri870. Thanks for reporting this issue regarding SharedWorker in WKWebView on iOS 16.1, and for the bug report. While our engineers work on a long-term solution, the suggested workaround is to disable SharedWorkers for the web site you're loading. You can either do this in your web source, if you control it, or in your native app, if you are loading arbitrary web sites. As an example, the sample code in Code Listing 1 disables SharedWorkers when loading a page in WKWebView, by injecting a script using WKUserScript. Code Listing 1. func makeViewConfiguration() -> WKWebViewConfiguration { let configuration = WKWebViewConfiguration() let dropSharedWorkersScript = WKUserScript(source: delete window.SharedWorker;, injectionTime: WKUserScriptInjectionTime.atDocumentStart, forMainFrameOnly: false) configuration.userContentController.addUserScript(dropSharedWorkersScript) return configuration } var view = WKWebView(frame: CGRect(x: 0, y: 0, width: 400, height: 400), co
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’22
Reply to Set 12 vs 24 hour with the new date formatting API in iOS 15
First, thanks for re-posting. Second, I’m going to drop a link to Unicode Technical Standard #35 Unicode Locale Data Markup Language (LDML) Part 4: Dates, just for the benefit of Future Quinn™. Third, I apologise in advance for harping on about the old API, but you’ll understand why in a second. You wrote: I could use formatter.setLocalizedDateFormatFromTemplate(isTwentyFourHourClock ? HHmm : hhmm) Unfortunately that doesn’t work, even for ‘simple’ cases like US English. Consider the code at the end of this post. Put that code into a test app and run it on an device. Now configure your device as follows: Set Settings > General > Language & Region > Region to United States. Set Settings > General > Date & Time > 24-Hour Time to On. Now run the code. It prints this: locale: en_US (current) format: X .standard X .preferred X .force12Hour X .force24Hour X AM: X 09:42 X 09:42 X 09:42 X
Topic: App & System Services SubTopic: General Tags:
Mar ’22
Reply to Playing Audio
Hi,I have created a demo for you, which demonstrate how you can use NSNotificationCenter in your app. Please search amitanmol/NSNotificationCenterDemo on github to download and test. Let me know if you face any issue or need any help. You can raise any issue on my github account also for this.
Jun ’17
Reply to Custom Errors
I tried the code you last posted in new project (both Xcode 8.3.3 and Xcode 9, Swift 3.x and 4) and it works fine. At this point, I'd say the problem is not the ExamineError declaration, but something else is going wrong in your project. If you're using a current version of Xcode, I'd suggest you submit a bug report and see what comes back.Incidentally, just for interest, you could try:catch { let e = error as! ExamineError print (type(of: e)) }and see what it says.
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’17
Reply to Badger code sample does not run on iOS 10 when compiled on El Capitan?
Thanks for your answer.Yes it is an iPad mini 2 - forgot to add the number at the end. The error I get consistently, both in the simulator and on the device is EXC_BAD_ACCESS at line 38 of ViewController.swift for Thread 1 with code=1, address = 0x0. I am running OS X v 10.11.5. I should say that I have both Xcode 7.3.1 and Xcode 8 beta installed. Since this error seems to be uncommon, I'll try a fresh install.
Topic: Graphics & Games SubTopic: SceneKit Tags:
Jun ’16
Reply to Xcode Extension isn't show up in the Editor menu
So, it looks like having multiple versions of Xcode on the same machine (Xcode 16.2 release plus a couple of betas for 16.3) means this doesn't show up. @DTS Engineer Is there a way to do this while having multiple versions of Xcode? I found this Github thread but it doesn't seem to work for me: https://github.com/nicklockwood/SwiftFormat/issues/494#issuecomment-547101989 I've also tried the trick of renaming Xcode.app and moving it in and out of the Applications directory to (allegedly) refresh some cache somewhere but no luck
Mar ’25
Reply to Crash by SwiftData MigarionPlan
I just tried logging an error.localizedDescription in TestFlight and got : Could not create ModelContainer: The operation couldn’t be completed. I also tried adding -com.apple.CoreData.MigrationDebug 1 to the launch arguments, but there was no CoreData: error: ... in the Xcode console. I created a new project and copied the MigraitonPlan-related code from my code into it and uploaded it to Github. TestDemo
Jul ’24
Reply to MacOs Drops Github Credentials
I have same problem when access my company bitbucket after upgrade to MacOS Ventura beta8, but when i try to access my personal github repo, it works fine.Anyone have an idea? additional: i can access my company repo use Xcode, but when i use git tools in Terminal,it give me Permission denied (publickey). So weird.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’22
Reply to How can I compile this app?
The missing files are found in a couple of Git submodules which don’t seem to get cloned if you use GitHub’s Open with Xcode or Download ZIP options, or a normal git clone command. It works if you use git clone --recursive like this: $ git clone --recursive git@github.com:macmade/QEMU-Manager.git
Jan ’22
Reply to Building macOS with App Groups using external CI/CD
I'm also experiencing this issue so I figured I'd throw my own details on here in case they help. I am building a macOS System / Network Extension. I can build locally with both Development and Developer ID keys using XCode. As soon as I move towards xcodebuild (locally), I need to have the provisioning profile installed by downloading it from the Developer Portal and double-clicking it, etc. xcodebuild -scheme Extension -configuration Release -destination generic/platform=macOS The exact problem rookuuu has happens when I attempt to build in my CI pipeline with the exact same provisioning profile and key. Specifically GitHub Actions + GitHub-Hosted Runners using GitHub instructions for installing profiles. If I remove the profiles locally on my machine and attempt to install the provisioning profile using GitHub instructions (rename {ProfileName}.provisionprofile to {ProfileGuid}.mobileprovision and add to ~/Library/MobileDevice/Provisioning Profiles) it has the s
Jun ’23