How to create xcframework in xcode

Asked 2 years ago, Updated 2 years ago, 81 views

When I created xcframework with xcode, I referred to the site below, but when I added AFNetworking within xcframework, I got an error during the build.

specifying in xcframework:

 pod 'AFNetworking', '~>4.0'

error messages:

 fatal error: 'AFNetworking/AFNetworking.h' file not found

Is it possible to create an xcframework using an additional framework using pod?

If anyone knows, please let me know.

referenced sites:
Create xcframework (first time)

xcode cocoapods framework

2022-09-30 15:38

1 Answers

If you add AFNetworking (.framework) to Framework, can you create xcframwalk with framework in framework?

I understand that xcframework is considered for use on multiple platforms, but I have heard that iOS rejects the examination if framework is incorporated with framework.

Since you seem to be using Cocoapods, I think it's the right way to write afnetworking in podfile instead of adding afnetworking to podspec dependencies.


2022-09-30 15:38

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.