Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I made empty framework project MyFramework and try to create XCFramework

Xcode 12.3, 12.2, 11.7 macOS Catalina, Big Sur

in terminal I write:

xcodebuild archive 
-project "MyFramework.xcodeproj" 
-scheme MyFramework 
-archivePath ~/Desktop/MyFramework-iphoneos.xcarchive 
-sdk iphoneos 
SKIP_INSTALL=NO 
BUILD_LIBRARY_FOR_DISTRIBUTION=YES

it generates MyFramework-iphoneos.xcarchive successfully

but when I write in terminal:

xcodebuild -create-xcframework -framework '~/Desktop/MyFramework-iphoneos.xcarchive/Products/Library/Frameworks/MyFramework.framework' -output '~/Desktop/MyFramework.xcframework'

it returns error:

error: the path does not point to a valid framework: ~/Desktop/MyFramework-iphoneos.xcarchive/Products/Library/Frameworks/MyFramework.framework

What is the reason and how to fix it?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
1.3k views
Welcome To Ask or Share your Answers For Others

1 Answer

It appears that problem was in relative path like "~/Desktop" Using instead "users/username/documents..." solved this problem


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...