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
Search results for
xcode github
91,955 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
@Michaelrowe01, Please review and apply the instructions in Grant Xcode Cloud access to your source code and Resolve GitHub Enterprise connection issues.
Topic:
Developer Tools & Services
SubTopic:
Xcode Cloud
Tags:
Apple can make XCode Light or XCode for iOS. Like MS make Visual Studio for OS X. But it's based on Github Atom, instead rewrite Win32 app.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
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:
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.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
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.
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.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Common problem, its not you , its Xcode Until this is fixed, anyone know a quick way of seeing which branch you are on without leaving Xcode and going into Fork, Tower or other GitHub client, or the terminal?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
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?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Hi, My app only runs on iOS 10 and higher so I cant test on iOS 9. However I do not think its an iOS version issue. The simulator bug occurs even if I use iOS 10.x in the simulator instead of iOS 11.x. And the same code worked perfectly in XCode 8.x
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
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
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
I tried your code with Xcode 12.5.1 and it shows the same error. And trying with Xcode 13.1, it compiles without any problems. I'm not sure what is causing this issue, but until the problem is solved, you may need to use Xcode 13.x .
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
I had to download command line tools 10.12, because my computer hardware is not advanced enough for MacOS Mojave that command line tools 10.14 requires. Why will the older version not show up in x-code 10? Is it because command line tool 10.12 was for version 9.x of x-code? Where can I get x-code 9.x?
(2 x home button, swipe up, then Step over in Xcode to finish it)Why do you have to Step over in Xcode?When I kill my app this way, the code simply runs as expected with no interaction required.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags:
Ok nice I can see comments of my PR in my Xcode. That's cool but can I toggle off those comments? ...without removing my Github account?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: