I've spent a while crafting developer documenattion in a framework I have created. Within my test app (in the smae workspace) I get the developer documentation dislayed fine. I then built the XCFramework and used it in another project. In there, I cannot see the documentation. Is there some trick to getting the documentation carried over to the other project? I've tried as many variations on the build process as I can some up with, but nothing seems to work.
If I examine the XCFramework, there is a file called "arm64-apple-ios.swiftdoc" that appears to have the documenattion in it, but Option-Clicking on one of my custom components just tells me there is "No Quick Help".
My build script for the framework is...
echo '*** Delete the iphone archive and rebuild'
rm -r './build/UtilityViews.framework-iphoneos.xcarchive'
echo 'Build the documentation'
xcodebuild docbuild \
-scheme UtilityViews \
-destination 'generic/platform=iOS' \
-quiet
echo 'Build the framework'
xcodebuild archive \
-scheme UtilityViews \
-configuration Release \
-destination 'generic/platform=iOS' \
-archivePath './build/UtilityViews.framework-iphoneos.xcarchive' \
-quiet \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
echo '*** Delete iphone simulator archive and rebuild'
rm -r './build/UtilityViews.framework-iphonesimulator.xcarchive'
echo 'Build the documentation'
xcodebuild docbuild \
-scheme UtilityViews \
-destination 'generic/platform=iOS Simulator' \
-quiet
echo 'Build the framework'
xcodebuild archive \
-scheme UtilityViews \
-configuration Release \
-destination 'generic/platform=iOS Simulator' \
-archivePath './build/UtilityViews.framework-iphonesimulator.xcarchive' \
-quiet \
SKIP_INSTALL=NO \
BUILD_LIBRARY_FOR_DISTRIBUTION=YES
echo '*** Delete xcframework and rebuild'
rm -r './build/UtilityViews.xcframework'
xcodebuild -create-xcframework \
-framework './build/UtilityViews.framework-iphoneos.xcarchive/Products/Library/Frameworks/UtilityViews.framework' \
-framework './build/UtilityViews.framework-iphonesimulator.xcarchive/Products/Library/Frameworks/UtilityViews.framework' \
-output './build/UtilityViews.xcframework'
This is my first attempt at creating a framework, so I'm rather blundering around in the dark. I've tried googling, but everything I find is about building the framework and doesn't go in to the developer documentation side.
Any help is much appreciated.
Thanks
Steve