Class: SecureKeys::Swift::XCFramework
- Inherits:
-
Object
- Object
- SecureKeys::Swift::XCFramework
- Defined in:
- lib/core/utils/swift/xcframework.rb
Instance Method Summary collapse
-
#configure_xcframework_to_xcodeproj ⇒ Object
Configure the XCFramework to the Xcode project.
-
#generate ⇒ Object
Generate the XCFramework from the Swift package.
Instance Method Details
#configure_xcframework_to_xcodeproj ⇒ Object
Configure the XCFramework to the Xcode project
28 29 30 31 |
# File 'lib/core/utils/swift/xcframework.rb', line 28 def configure_xcframework_to_xcodeproj remove_xcframework_from_xcodeproj_target_if_needed if Globals.replace_xcframework? add_xcframework_to_xcodeproj_target_if_needed if Globals.replace_xcframework? || Globals.add_xcframework? end |
#generate ⇒ Object
Generate the XCFramework from the Swift package
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/core/utils/swift/xcframework.rb', line 14 def generate # TODO: Add support for multiple platforms # Currently this is failling with the following error: # "library with the identifier 'ios-arm64' already exists." %w[Release].each do |configuration| Globals.ios_platforms.each do |platform| generate_key_modules(configuration:, platform:) generate_key_libraries(configuration:, platform: platform[:path]) end end generate_key_xcframework end |