RealityKit and Reality Composer incompatibile with iOS 12 support - xcode

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.

Related

Is the AgoraRTMWrapper in XCode necessary?

I have been dealing with the same issue for a few days now. I'm unable to upload any app store connect files due to the libAgoraRTMWrapper file. To be clear, this entire app has been built through Unity using agora SDK. The reason for failure, according to XCode, is that the wrapper "doesn't have the correct file type for this location". Invalid Swift support.
This leads me to wonder if the libagoraRTMWrapper is even necessary. Yes, I would like to keep using RTM but not at the expense of several build failures.
As a sidenote, XCode does mention that the build is being made for iOS but the wrapper was built for iOS + iOS simulator. I don't remember ever specifying that but it could just be the way the SDK was initially imported.
this library is necessary for RTM to work. Do you have a custom build setting for the project? It is verified that the included SDK Demo works on iOS builds. Perhaps you can build that and compare the build setting to yours to find out what went wrong?

SPM Kingfisher SwiftUI Compiler error while archiving

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.

XCode error running react-native project 'JavaScriptCore/JavaScriptCore.h' file not found

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

MonoTouch 4: The type or namespace name 'Outlet' could not be found

I have purchased MonoTouch last October from Novell. Now that I updated to MonoDevelop 2.8.5, and XCode 4.2, my projects won't build because the designer files complain:
The type or namespace name 'Outlet' could not be found
I have Monotouch 4.0.3, and just read in the Transitioning to XCode 4 article that Monotouch 4.0.4.1 or greater is required for XCode 4 support. When I try to update Monotouch, I can only find a MonoTouch 5 dmg, but it complains my current license does not allow me to upgrade to MonoTouch 5 (a natural thing because it now belongs to Xamarin)
So you could help me out with either of the two:
Tell me how I can download MonoTouch 4.0.4.1 or greater (but less than 5 due to licensing - I do not want to buy a new license)
How I can fix the problem of namespace during build
Any directions are greatly appreciated
Tell me how I can download MonoTouch 4.0.4.1 or greater
Please contact support#xamarin.com
They will be able to validate your license and allow you to download all/any versions you are entitled for.
How I can fix the problem of namespace during build
I don't think you can, without updating to 4.0.4.1, if you used Xcode's interface builder to develop your user interfaces.
MonoDevelop 2.8 is meant to be used with MonoTouch 5 (and Xcode 4.2), while MonoDevelop 2.6 is for MonoTouch 4.
This is an unfortunate artifact of the changes required in MonoDevelop to properly support iOS 5 (they were substantial, and the extra work required to be backwards compatible with older versions of MonoTouch was deemed to be too big).

Getting "Missing SDK in target picChoice: iphoneos4.0" error when building a test release of my app in Xcode 4, pvw 5

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.

Resources