-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'unicode/utf8.h' file not found [Catalyst UIKit for macOS] #3189
Comments
This comment has been minimized.
This comment has been minimized.
While our support for Catalyst is non-existent as of right now, this unicode header is one that should be present on every platform that Apple supports. Looks like this header is part of the WebKit framework. Does the error go away if you add WebKit to your target's linked frameworks? |
Adding WebKit did not help. Even if Catalyst support is not existing, would it not be possible to add it anyway as Firebase has macOS support? Here is my Build phases/Link Binary with libraries after adding WebKit. However, setting the firebase frameworks to iOS + Mac gives me another error. "Building for UIKit for Mac, but the linked framework 'FBSDKLoginKit.framework' was built for . You may need to restrict the platforms for which this framework should be linked in the target editor." Keeping the setting att iOS only still gives me the 'unicode/utf8.h' file not found-error |
Could this perhaps be because of changes apple is making to web handling with Catalyst? I know they deprecated UIWebView and don't have a Catalyst equivalent of UIWebView (forcing the use of WKWebView). Perhaps they have made deprecating changes to WebKit in general and are enforcing these deprecations in Catalyst? Perhaps they have made a breaking change to the utf8 header file. Just a thought. |
This may also be related to CocoaPods not having support for Catalyst - they have an Issue open tracking it now. CocoaPods/CocoaPods#8892 |
See #3144 |
Could this be relevant? An answer from Apple but also a comment about getting one framework working with UIKit-for-mac: |
Responded in the other issue #3144 (comment) General Catalyst related progress and updates should be posted there.
It's also worth noting that |
[READ] Step 1: Are you in the right place?
file a Github issue.
with the firebase tag.
google group.
of the above categories, reach out to the personalized
Firebase support channel.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
I get an error
fatal error: 'unicode/utf8.h' file not found when running.
Steps to reproduce:
I am trying to integrate macOS in my Catalyst/ UIKit for Mac app. Using Cocoapods 1.7.2. With this pod file:
target 'xxxxxMac' do
platform :macos, '10.15'
use_frameworks!
pod 'FirebaseCore'
pod 'FirebaseAuth'
pod 'FirebaseDatabase'
pod 'FirebaseStorage'
end
Error is:
Library/Developer/Xcode/DerivedData/projectx-gjaanasqdnycapdqrcipkyxevoec/Build/Intermediates.noindex/Pods.build/Debug-uikitformac/FirebaseDatabase-iOS.build/Objects-normal/x86_64/FSRWebSocket.o
....../Users/xxxx/xxx/xxxx/Pods/FirebaseDatabase/Firebase/Database/third_party/SocketRocket/FSRWebSocket.m:28:9: fatal error: 'unicode/utf8.h' file not found
#import <unicode/utf8.h>
^~~~~~~~~~~~~~~~
1 error generated.
Relevant Code:
#if targetEnvironment(UIKitForMac)
import FirebaseCore
#else
import Firebase
#endif
The text was updated successfully, but these errors were encountered: