Closed EliG-TA closed 3 weeks ago
Here is an update. It seems like this is a step forward in the right direction as this patch seems to allow my app to compile except I have not tested it working in runtime.
https://github.com/birkir/react-native-carplay/issues/101#issuecomment-2186383765
kudos to @janwiebe-jump and @casperolesen
UPDATE: 08.02.2024
Got basic Apple CarPlay working fully with much tweaking and help from above thread.
@EliG-TA could you please share your code? I am running into issues with Expo SDK 51, I keep getting build errors and a black screen.
Hey! I cannot understand why I am having so much difficulty getting this library setup for IOS. I got it working with minimal effort on my part for Android. This issue is happening after I followed meticulously what the documentations say on setting up for IOS, but to no avail. What could I possibly be doing wrong. FYI, I'm trying very hard to use this library with my Expo project even though this is a bare bones React Native library and it was not built for this use case. However, I feel like I am getting very close. I am fully aware that this library has been transitioning from Objective-C in favor of Swift for much of the code base, however I since I am trying to keep my App stable being that it uses a lot of Expo, I would like to keep it in Objective-C if possible.
Here is the error output:
⚠️ ld: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found
❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)
Here is my relevant project folder layout and code:
. └── ./ios/ ├── ./ios/build/ ├── ./ios/Pods/ ├── ./ios/MyProject/ │ ├── ./ios/MyProject/Images.xcassets/ │ ├── ./ios/MyProject/Supporting/ │ ├── ./ios/MyProject/AppDelegate.h │ ├── ./ios/MyProject/AppDelegate.mm │ ├── ./ios/MyProject/CarSceneDelegate.h │ ├── ./ios/MyProject/CarSceneDelegate.m │ ├── ./ios/MyProject/Info.plist │ ├── ./ios/MyProject/main.m │ ├── ./ios/MyProject/noop-file.swift │ ├── ./ios/MyProject/PhoneSceneDelegate.h │ ├── ./ios/MyProject/PhoneSceneDelegate.m │ ├── ./ios/MyProject/SplashScreen.storyboard │ ├── ./ios/MyProject/MyProject-Bridging-Header.h │ └── ./ios/MyProject/MyProject.entitlements ├── ./ios/MyProject.xcodeproj/ ├── ./ios/MyProject.xcworkspace/ └── ./ios/Other Files
AppDelegate.h
AppDelegate.mm
CarSceneDelegate.h
CarSceneDelegate
main.m
PhoneSceneDelegate.h
PhoneSceneDelegate.m
To Reproduce Try building the project with my configuration for IOS.
Expected behavior To build successfully for IOS.
Screenshots/Videos If applicable, add screenshots to help explain your problem.
CarPlay (please complete the following information):
Additional context I have the following Apple entitlements:
"com.apple.developer.carplay-audio": true, "com.apple.developer.playable-content": true