Search results for

xcode github

91,951 results found

Post

Replies

Boosts

Views

Activity

Porting Swift StoreKit code from iOS 9 to OS X 10.11
I am porting Swift-based StoreKit code from iOS 9 to OS X 10.11, and have run into a pile of build errors. Has anyone else has run into difficulty porting Swift-based StoreKit code, and if so, how are you coping?Most of the build failures appear to boil down to the iOS version of the SDK having non-optionals (non-nil arrays, strings, and such), versus the OS X version having optionals. There is also a difference of initializers. This makes writing portable code in Swift quite confounding, unless I'm missing something. For example,// Localizing the price: let numberFormatter = NSNumberFormatter() numberFormatter.formatterBehavior = .Behavior10_4 numberFormatter.numberStyle = .CurrencyStyle numberFormatter.locale = product.priceLocale #if os(iOS) let price = product.price #elseif os(OSX) let price = product.price! #endif return numberFormatter.stringFromNumber(price)!// Creating a payment #if os(iOS) let payment = SKPayment(product: product) #elseif os(OSX) let payme
0
0
393
May ’16
Reply to Swift Package Manager Binary Target
This is probably due to the fact that Xcode tries to download the zip file, specified by the url, without knowning that it's an attached file at a private github repository, and does't add the personal access token in the headers. As a result: 404 file not found. The exact same logic is working on a publicly accessed github repository.
Dec ’20
Reply to How do you make your app work on older iOS versions
You can make your app work on 8 and 9, but it will take more work. You won't be able to submit the app from Xcode 7 until shortly before iOS 9 is released. You can install Xcode 6.4, target iOS 8, and submit to the store now. But, this almost certainly means you will have to make some code changes (especially if you used Swift) and do some testing on the 8.x simulators and some devices that still have 8.x on them. Or, if you want to wait to submit the app until it is possible to do so from Xcode 7, you can set your project's deployment target to iOS 8.x, and again, modify your code and test on iOS 8 simulators/devices. There are several ways to handle things that are different or missing in different iOS versions, such as the if #available statement (Swift), comparing NSFoundationVersionNumber, testing respondsToSelector, or testing the result of NSClassFromString().EDIT: Changed ... project to target iOS 8.x... to ... project's
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
Can Apple Put Example Code on GitHub?
I've observed that Apple is making a lot of changes to SwiftUI and Combine between beta releases. It's my opinion that the community would be better served if Apple put the example code on GitHub, which would allow us to see the changes as the APIs evolve.It would also help us if Apple updated the examples for each beta release. At this point, there are examples that do not build.
1
0
727
Aug ’19
Reply to Xcode Cloud source control integration
Yes. See the final section of this page of documentation: In Xcode 13 and later, you can create, view, and comment on PRs, and merge changes into your codebase if you host your Git repository with Bitbucket Server, GitHub, or GitHub Enterprise. You can also configure Xcode Cloud to detect new PRs, or changes to an existing PR. When it detects a change, Xcode Cloud merges the involved branches in a temporary build environment, and automatically builds your project and runs your tests to verify the merged code. After verifying the changes, Xcode Cloud adds a status message to the PR to inform you of the result.
Jun ’21
Reply to Xcode 6 doesn't supported in 10.11 beta 2
App submissions tend to be about the code submitted, not the OS that generated it. XCode is the focus here and the store rejects any code that comes from Beta XCode version (having done that by mistake more than once,). Im not sure they care about the OS part, as it doesnt leave trails in the code that seem to care about. Today you can submit on a range of OS X versions, basically anything that runs XCode 6.x and meets the other code requriements.In the past they have always had both a GM version of XCode for each OS beta, to support submissions and other testing. With XCode7, I have not seen the normal words about no submittal using the beta that normally is there. Maybe its there and I just missed it. Do we know for sure that current XCode7 cant be used for submission?
Jun ’15
Reply to "Running <playground-name>", "Launching simulator", and freezing issues
Hi guysI have been having the same problems, along with many other xcode problems. I am wondering if it is specific to a type of computer. I am running a late 2015 iMac. Could you all put down what computer you are using.For info, I have been having various major problems with all versions of x code since I started using it about 9 months ago. So it has included 9.0 - 9.3, and all the macOs updates since then. See my posts under 'X code 9.3 Multiple problems' and 'Multiple problems with x code, is it the Mac?'ThanksGeoff
May ’18