If I try to archive my project, I get many compiler errors with Kingfisher for SwiftUI.
I can run code on my device and on the simulator without any problems.
Xcode Version 13.0 (13A233)
SPM
KingFisher 6.3.1
Have anyone got an idea?
enter image description here
You need Kingfisher 7.x for Xcode 13.
It's also good practice to clean the build folder after the package update, before rebuilding.
Kingfisher's GitHub page has additional explanations:
If you need to support from iOS 10 (UIKit/AppKit) or iOS 13 (SwiftUI),
use Kingfisher version 6.x. But it won't work with Xcode 13.
If you need to use Xcode 13 but cannot upgrade to v7, use the
version6-xcode13 branch. However, you have to drop iOS 10 support due
to an Xcode 13 bug.
Related
In a new update of my app I want to integrate a new AR function using the Reality Composer, this function will available only for iOS 13, but I have a problem.
I want to maintain my project compatible with iOS 12, but I'm unable to do this.
When I set the compatibility with iOS 12 the swift file auto-generated by the .rcproject give me a lots of errors "... is only available in iOS 13.0 or newer". I tried to add "#available(iOS 13.0, *)" but when I rebuild the project xCode restores the original file and returns me the same errors "... is only available in iOS 13.0 or newer".
There is a solution for these?
Thanks in advance
RealityKit features are directly implemented in iOS/iPadOS 13 and higher, so the only way to work with RealityKit framework is to use it in apps with targets of iOS 13/14/15. OS versions lower than mentioned don't support RealityKit in any way.
In Xcode 10.1 whenever I build my app I get the warning
Swift 3 mode has been deprecated and will be removed in a later
version of Xcode. Please migrate "My Appp" to Swift 4.2 using "Convert > To Current Swift Syntax…" in the Edit menu. (in target 'My App')
How can I suppress the warning?
I tried to convert but conversion fails and besides that my app depends on some Pods / libraries that I can not convert any way.
Is there a way to stop seeing the warning?
Unfortunately, there's no way to remove this. You'll need to manually update your Pods / libraries to Swift 4.x or wait until someone does the job for you. Otherwise, you won't be able to build your project with a newer Xcode version at some point in the future.
From https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes:
Xcode 10 is the last release that will support Swift 3. Migrate your projects from Swift 3 code to Swift 4.2 syntax by opening the project and choosing Edit > Convert > To Current Swift Syntax… (43101816)
Download Xcode 10.1 to be able to compile your code with Swift 3 or Pod decencies:
https://developer.apple.com/download/more/?name=Xcode
I have a custom CocoaPod created in swift2.3 and it has Alamofire and Reachability libraries inside the project. I mean I did integrate Alamofire and Reachability into the project manually.
It still works perfectly on xCode7.3.1 and I am going to update it to swift3 on xCode8-Beta5. I tried to update it but I couldn't get it done successfully.
Here is how I did for the update.
Replaced Alamofire and Reachability in the project folder for swift3 from
https://github.com/Alamofire/Alamofire/tree/swift3
Opened xCode8-Beta5 and converted all files to Swift3 syntax(actually xCode asks it when opening the old version project). So the converting was done automatically by xCode.
And I tried to build the Cocoapod but it gives a the bunch of error.
How can I solve this problem and update the Cocoapod successfully?
I tried to update two Cocoapods on xCode8-beta6 but Alamofire is still not working. Here is a screenshot.
https://www.dropbox.com/s/gm8ud67qc1ixffb/Screen%20Shot%202016-08-20%20at%2011.06.31%20AM.png?dl=0
If you plan to convert your code into swift 3, and to develop in the latest XCode 8 Beta 6 (forget to use Beta 5, I was trying to success round a clock and finally in Beta 6 it is possible to use Alamofire without rewriting all their code):
You need to update the Alamofire to its 4.0 version. I was waiting for this version neverending weeks between beta 2 and beta 6, as it wasn't able to use Alamofire at all. Apple ischanging SDK version by version during summer, but now the latest branch of this framework is on github.
In your Podfile you need to set more parameters to be able to use update stuff in these beta times. They are hardworking on swift3 branch.
If you don't use 4.0 version, there are many issues that XCode is not able to resolve in its convertor for its previous versions of Alamofire.
Huge amount of code they had to change.
They announced they will produce official 4.0 version after Apple releases GM seed. So until we get XCode GM Seed, put this to your Podfile before its install:
I could build Alamofire and Reachability frameworks successfully on xCode8-beta6 without any problem from the following branches.
https://github.com/Alamofire/Alamofire/tree/swift3
https://github.com/ashleymills/Reachability.swift/tree/feature/ios10
I am trying to run a react-native project in Xcode (version 4.6.0). I have done the following:
react-native init helloWorld then open the 'helloWorld.xcodeproj file in
Xcode Run using simulator (e.g. iphone 7) in XCode
I keep getting build failure, with this ....Desktop/helloWorld/node_modules/react-native/React/Base/RCTJavaScriptExecutor.h:10:9: 'JavaScriptCore/JavaScriptCore.h' file not found
I have tried to see how to add the library but cannot find out how.
Could anyone please point me in the right direction, any comments would be much appreciated
most probably JavaScriptCore framework is missing, try to add it (Adding Framework in Xcode 4)
Your XCode is too low, consider updating it. And BTW - React Native doesn't support iOS 6 (https://github.com/facebook/react-native/issues/330) so be sure that you are using iOS 7 or 8
I have opened a functioning Xcode 3x project in Xcode 4.0 pvw 5 and am getting the following error whei I try to build a debug version of the app: "Missing SDK in target picChoice: iphoneos4.0"
I am trying to find where and how to remedy this, and I am coming up with bupkus.
I apologize if this is not very clear, but I am rather flummoxed by Xcode 4 so far....
Your problem was probably that Xcode 4 only came with SDK 4.2, and the project pointed to 4.0.
It's pretty common!
The solution is to go to the project info | Build settings | Base SDK and setting it to "Latest iOS" so that you don't have to touch it for future updates.
When you close the window, you'll have to switch config from debug to release or distribution and back so that it updates and Xcode removes the "Missing SDK" problem.
I just wanted to put the full answer up here to help others who have the same problem ;)
Ok...I resolved this, but I did not properly track HOW I resolved it....
I think my Target's Base SDK was not set, and I set it to: Latest iOS (iOS 4.2)....
I think that's how I did it....
But, now it builds with no errors and loads onto my iPhone as expected.
That is exactly what you needed to do. Xcode 4 introduced the Latest iOS. If you wish to test the app for older versions, select target > summary > deployment target and set that to an older iOS version and then in simulator you will see more version options available to you.