Closed HimanDhawan closed 1 year ago
My pod file :
# Uncomment the next line to define a global platform for your project
platform :ios, '15.0'
target 'MyFramework' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for MyFramework
pod 'Braintree'
pod 'Braintree/Venmo'
target 'MyFrameworkTests' do
# Pods for testing
end
end
I was able to replicate this issue. I am investigating this. I've created a ticket for this issue. (ticket for internal tracking: DTBTSDK-2674) Thank you.
I think this might be a Cocoapods issue. I was able to run preview using Swift Package Manager. I am investigating possible workarounds. I am looking into this article. https://michaziobro-21492.medium.com/using-swiftui-previews-in-cocoapods-framework-libraries-374f702b784f
@KunJeongPark I was able to run previews using swift package manager too. We are using other pods that doesn't support swift package manager. Thus, we cannot move to swift package manager.
I am finding the same issue with other pods in general such as SwiftJSON. So I think this is a Cocoapods issue. I think you may be able to get a better answer from the Cocoapods folks. Here is their issues page in Github. https://github.com/CocoaPods/CocoaPods/issues
Braintree SDK Version
5.21.0
Environment
Sandbox
Xcode Version
Xcode 14.3
OS Version & Device
iPhone 14- iOS 16.2
Integration type
CocoaPods
Development Processor
Apple Silicon (M-series chips)
Describe the bug
I am using macOS venture 13.3.1 and xcode 14.3. I am unable to see previews of Swiftui Views in Custom framework.
Error : `== DATE:
== PREVIEW UPDATE ERROR:
== VERSION INFO:
== ENVIRONMENT:
== SELECTED RUN DESTINATION:
== SELECTED RUN DESTINATION:
== SESSION GROUP 3917:
== UPDATE SESSION 3918:
== POWER STATE LOGS:
To reproduce
Expected behavior
Swiftui preview should work.
Screenshots