Hi, did someone find a solution ?
Post
Replies
Boosts
Views
Activity
Hi, we have the same issue, have you fount a way to resolve it ?
Aouch ... 6 years old !
Because XCFramework don't work with embedded statics lib, I use a workaround with two run scripts in build phase.
Note : for both script, check Based on depedency analysis to skip if not necessary, be sure For install builds only is uncheck
First script at the beginning of the build phase :
if [ $ARCHS == 'arm64' ]
then
cp -rf ./lib/iphone/libName.framework ./lib/libName.framework
else
cp -rf ./lib/simulator/libName.framework ./lib/libName.framework
fi
Second script at the end of the build phase
rm -rf ./lib/libName.framework `
Note : if your framework is still there when you change your arch (i.e. from simulator to device ) the phase prepare build will stop your build.
That's the reason of the deletion at the end of the build phase, without the second script you will have this error :
path.xcodeproj Building for iOS, but the linked and embedded framework 'libName.framework' was built for iOS Simulator.
Note 2 : provide one framework (in the lib folder in my case) for the first build, and run with the associated arch
Thanks a lot Matt,here is the feedback number FB7650375.