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
94,695 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I do the commits in Xcode, and push to a GitHub remote. The remote is my off-site backup, and (like KMT) Time Machine is my local backup.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Perhaps the fix has been implemented in Xcode 12.5 Beta 3: Resolved Issues Fixed an issue that caused OS X 10.11 and earlier to reject packages signed on OS X 10.11 and earlier. (71695608) Known Issues OS X 10.11 and earlier may reject code signatures added to universal binaries by Xcode 12.5. (70724583) (FB8830007) Workaround: Specify --digest-algorithm=sha1,sha256 to the codesign utility at signing time. In Xcode, specify this using the OTHER_CODE_SIGN_FLAGS build setting.
Topic:
Code Signing
SubTopic:
General
Tags:
This is also happening for me, both projects downloaded from GitHub using Xcode's Clone... menu item as well as directly from the command line in Terminal.
Topic:
Developer Tools & Services
SubTopic:
Xcode
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?
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:
I'm in the same situation. I'm working on finishing up my first app for iOS 13 and have wondered about what is supposed to be done with a new iOS comes out. This is answering some questions, but I'm not familiar with git (I assume GitHub) or branches of code. Can anyone point me in the direction of how to use GitHub with Xcode? And how to branch code... :D
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.
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:
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:
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:
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:
@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:
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:
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: