Cocoapods: While using XCFramework as a vendored_framework, Instead of IOS Archive, It is generating the Generic Xcode Archive.

Created on 6 Jan 2020  Â·  10Comments  Â·  Source: CocoaPods/CocoaPods

Hi,

Report

What did you do?

ℹ I have created XCFramework, that one I added as vendored_frameworks and distributed in cocoapods.

What did you expect to happen?

ℹ Once we install that pod into the client's IOS projects, It is working fine when running into a simulator or real device. But when we create the archive it is expected to createIOS Archive.

What happened instead?

ℹ Instead of IOS Archive, It is generating the Generic Xcode Archive. When we use .framework file, it is working fine. Problem with XCFramework only.

CocoaPods Environment

ℹ CocoaPods version 1.9.0.beta.2
ℹ Xcode Version - 11.2.1

Project that demonstrates the issue

ℹ I have verified this repo also cocoapods integration repo. The Same problem.

ℹ Try with this also pod 'CoconutLib'

@amorde Please help me to resolve this issue. I looking forward to hearing from you. If you need more information let me know.

xcframeworks confirmed

Most helpful comment

Fixed. Will ship in 1.9.0.beta.3

All 10 comments

Confirmed, thank you for submitting this! Looks like the xcframework slice is put in the wrong place when archiving. Still looking into why but can reproduce it.

The framework slice is being put into the correct place, but the copy from the Prepare Artifacts script is left in ${TARGET_BUILD_DIR} which is a different location when archiving. We need to store it somewhere else or delete that copy when archiving.

Fixed. Will ship in 1.9.0.beta.3

Fixed. Will ship in 1.9.0.beta.3

Thanks @amorde and @dnkoutso

Hi @amorde and @dnkoutso Is the 1.9.0.beta.3 released?

Not yet but you can use https://bundler.io/ to point to the 1-9-stable branch if you want the latest commits from now.

@dnkoutso Thanks for the quick reply. Will do that, also is it possible to know by when you will be releasing ? Any ETA would be nice.

@NishantTiwarins we do not do any scheduled releases, my best guess is this week but no promises.

@dnkoutso Okay no problem. Anyway thanks for the update and a quick reply.

I have the same issue. Thanks for your quick fix. Great work. Looking forward to test ist.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gerchicov-bp picture gerchicov-bp  Â·  3Comments

iosdev-republicofapps picture iosdev-republicofapps  Â·  3Comments

luhui picture luhui  Â·  3Comments

steffendsommer picture steffendsommer  Â·  3Comments

marzapower picture marzapower  Â·  3Comments