From ea70c4ca3388dd6ad4f3a119c5a714cb6ed67a97 Mon Sep 17 00:00:00 2001 From: Kyle Date: Wed, 25 Sep 2024 14:09:58 +0800 Subject: [PATCH 01/21] Add -F flag for xcframework dependency Close #7580 Replace -I with -F is enough to fix the issue. Keeping -I for compatibility reason in case there are other cases where -I is needed. --- Sources/Build/BuildPlan/BuildPlan+Swift.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/Build/BuildPlan/BuildPlan+Swift.swift b/Sources/Build/BuildPlan/BuildPlan+Swift.swift index 7d387f8cfd5..05c25e445c1 100644 --- a/Sources/Build/BuildPlan/BuildPlan+Swift.swift +++ b/Sources/Build/BuildPlan/BuildPlan+Swift.swift @@ -43,7 +43,10 @@ extension BuildPlan { let libraries = try self.parseXCFramework(for: target, triple: swiftTarget.buildParameters.triple) for library in libraries { library.headersPaths.forEach { - swiftTarget.additionalFlags += ["-I", $0.pathString, "-Xcc", "-I", "-Xcc", $0.pathString] + swiftTarget.additionalFlags += [ + "-I", $0.pathString, "-Xcc", "-I", "-Xcc", $0.pathString, + "-F", $0.pathString, "-Xcc", "-F", "-Xcc", $0.pathString, + ] } swiftTarget.libraryBinaryPaths.insert(library.libraryPath) } From 68c6b2855c86568ce63df0d3f3b094779840f5ca Mon Sep 17 00:00:00 2001 From: Kyle Date: Sun, 29 Sep 2024 23:58:13 +0800 Subject: [PATCH 02/21] Add test case for testDocCPluginForBinaryDependency --- .../DocCForBinaryDependency/Package.swift | 25 +++++++++++++++++++ .../Sources/DemoKit/DemoKit.swift | 8 ++++++ Tests/BuildTests/PluginsBuildPlanTests.swift | 10 ++++++++ 3 files changed, 43 insertions(+) create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Package.swift create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Sources/DemoKit/DemoKit.swift diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Package.swift b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Package.swift new file mode 100644 index 00000000000..2ac82d16da6 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Package.swift @@ -0,0 +1,25 @@ +// swift-tools-version: 6.0 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "DemoKit", + products: [ + .library(name: "DemoKit", targets: ["DemoKit"]), + ], + dependencies: [ + .package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.0.0"), + ], + targets: [ + .binaryTarget( + name: "MMKV", + url: "https://github.com/Kyle-Ye/MMKV/releases/download/v1.3.5-binary/MMKV.xcframework.zip", + checksum: "181709ac82514e7f243b338e2ac221c203741837e7f51e1922582d3f132d5b78" + ), + .target( + name: "DemoKit", + dependencies: ["MMKV"] + ), + ] +) diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Sources/DemoKit/DemoKit.swift b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Sources/DemoKit/DemoKit.swift new file mode 100644 index 00000000000..473566e0f51 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Sources/DemoKit/DemoKit.swift @@ -0,0 +1,8 @@ +import MMKV + +public struct Demo { + public static func greeting() { + let _ = MMKV() + print("Hello") + } +} diff --git a/Tests/BuildTests/PluginsBuildPlanTests.swift b/Tests/BuildTests/PluginsBuildPlanTests.swift index c0020ed0261..50a130069d1 100644 --- a/Tests/BuildTests/PluginsBuildPlanTests.swift +++ b/Tests/BuildTests/PluginsBuildPlanTests.swift @@ -79,4 +79,14 @@ final class PluginsBuildPlanTests: XCTestCase { ) } } + + #if canImport(Darwin) // xcframework support is only supported on Darwin platform + func testDocCPluginForBinaryDependency() async throws { + try await fixture(name: "Miscellaneous/Plugins/DocCForBinaryDependency") { fixturePath in + // Before we add -F support, this call will throw since the command will abort with a non-zero exit code + let (stdout, _) = try await executeSwiftPackage(fixturePath, extraArgs: ["generate-documentation", "--target", "DemoKit"]) + XCTAssertTrue(localFileSystem.exists(fixturePath.appending(RelativePath(".build/plugins/Swift-DocC/outputs/DemoKit.doccarchive/documentation/demokit/demo/greeting()/index.html")))) + } + } + #endif } From 40be84c6c3c1810a11c1dbc4a8377179986e6d67 Mon Sep 17 00:00:00 2001 From: Kyle Date: Mon, 30 Sep 2024 00:21:30 +0800 Subject: [PATCH 03/21] Add local FooKit.xcframework --- .../FooKit.xcframework/Info.plist | 28 +++++++++++ .../FooKit.framework/FooKit | 1 + .../FooKit.framework/Modules | 1 + .../FooKit.framework/Resources | 1 + .../FooKit.framework/Versions/A/FooKit | Bin 0 -> 135744 bytes .../Project/arm64-apple-macos.swiftsourceinfo | Bin 0 -> 804 bytes .../x86_64-apple-macos.swiftsourceinfo | Bin 0 -> 804 bytes .../arm64-apple-macos.abi.json | 32 ++++++++++++ .../arm64-apple-macos.private.swiftinterface | 8 +++ .../arm64-apple-macos.swiftdoc | Bin 0 -> 500 bytes .../arm64-apple-macos.swiftinterface | 8 +++ .../x86_64-apple-macos.abi.json | 32 ++++++++++++ .../x86_64-apple-macos.private.swiftinterface | 8 +++ .../x86_64-apple-macos.swiftdoc | Bin 0 -> 500 bytes .../x86_64-apple-macos.swiftinterface | 8 +++ .../Versions/A/Resources/Info.plist | 46 ++++++++++++++++++ .../FooKit.framework/Versions/Current | 1 + .../DocCForBinaryDependency/Package.swift | 8 +-- .../Sources/DemoKit/DemoKit.swift | 11 ++--- Tests/BuildTests/PluginsBuildPlanTests.swift | 2 +- 20 files changed, 182 insertions(+), 13 deletions(-) create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/Info.plist create mode 120000 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/FooKit create mode 120000 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules create mode 120000 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Resources create mode 100755 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/FooKit create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/Project/arm64-apple-macos.swiftsourceinfo create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/Project/x86_64-apple-macos.swiftsourceinfo create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftdoc create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftdoc create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Resources/Info.plist create mode 120000 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/Info.plist b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/Info.plist new file mode 100644 index 00000000000..7b2797a10a0 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/Info.plist @@ -0,0 +1,28 @@ + + + + + AvailableLibraries + + + BinaryPath + FooKit.framework/Versions/A/FooKit + LibraryIdentifier + macos-arm64_x86_64 + LibraryPath + FooKit.framework + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + macos + + + CFBundlePackageType + XFWK + XCFrameworkFormatVersion + 1.0 + + diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/FooKit b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/FooKit new file mode 120000 index 00000000000..a042ad394e1 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/FooKit @@ -0,0 +1 @@ +Versions/Current/FooKit \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules new file mode 120000 index 00000000000..5736f3186e7 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules @@ -0,0 +1 @@ +Versions/Current/Modules \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Resources b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Resources new file mode 120000 index 00000000000..953ee36f3bb --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Resources @@ -0,0 +1 @@ +Versions/Current/Resources \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/FooKit b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/FooKit new file mode 100755 index 0000000000000000000000000000000000000000..47deeea3c8f9da57541314007dfe0b2f3169a469 GIT binary patch literal 135744 zcmeI530PA{*Z6Nj*g;Sf+>n4^-AHZ#5fGIfqHMA#sBOq{fk;R&2|}!`0Tqk8R%@-h zxND2nt+i@Jty--cDzCMzOI_-QzFO-p{Lf^8KyCYe&-Z=r*Z29Kc{+FI%*;7=?(fc= zJ2$<9#~OC;qbQ2aq9|KPttcu2k}@tF+CZ5Tq!a}iiq$Rxj%^@fKmter2_OL^fCP{L z5+hvNe>LBdHXLv`neCxmjy_dedJP zIBaS{WKMH)BIqqekw~L0mS~!aTHA|rF;;anwIDM2GX~~hXR=4GnFNtYs#0p2JJ{M@ zj>%qtu{lNL7X34on-l0?i9A=^Po&iqF={5awY_;Jdk!WAB3t&)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Yw%^R$6kc$0%EE%Z z@g^V04x!80L9|no&tuaqmrQS5ofMfp5Gzn53fysx9;mPJF`0WzY}fkv1e4$FWH*= z^`|#F=wyB=wH~WaUsJH#?hAyfB^WV89{<7jy+N>R3uN)8GoZ)}8O6EFW zz2#=jGwH}K-ifz^M<)*z)+fuv9uG6Vah*Ec>&8!WX6>b4t^PH#u6|-wr~85KQ-juA z`^0BLtbgaTDIbg|pBNE1Ao*Cyet*APOhW%^^`p-RmESlJH{?<3| zdUgEbn9FEzDuX9iQ7aOM*WWj#|GW;e*{#30nv6aeQZ5A3?d*Ojv+c0yw&?^8d&~ zvt8fxt!I(cN@MKz<51htmy+wDRR3?{d2RYb>7cja(Qdz!Olh0_v`9y+3G5KGV zkg*S!!Ef{=6PPWINsAm-6p*jWi%O6LsB}RiQu`;zmeR2UNjtu&VL1H0ZqS7i!x_T) zhVu_{Xth89P!umUrC|A>9i!e&&e8k)l6VLp$(xBjB-)eBp? z#d@q!zF6Sw-%#i@;JcWNi}abp1&cPOP6<@IMz1NBJYKMPO5B-2$<@@dm;1u!)LvG( zj@vZKYE1FA$iP%}zd8H9>2kpT%bYsabI<(VXCEitFY$k`a^VNmE$a2zVWZYeJ}f!; zz5c4i{iR7%X>@QUtV4&o4E99ZE3@%M#=sIo!nGgc- literal 0 HcmV?d00001 diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/Project/arm64-apple-macos.swiftsourceinfo b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/Project/arm64-apple-macos.swiftsourceinfo new file mode 100644 index 0000000000000000000000000000000000000000..e3f29ed444a984011dba3d499468b0fde0e575a9 GIT binary patch literal 804 zcmY*Xy>HV{5Pxx6QaLS(BA`nLD=m^;f5)*MqYTtkU05Pf7Q}#)*fb@Lqb6$A4Xg}B zsvtwegv5u+L}^;ov54xSN*#g}r2Y|%VMNN%drl+DS@-UDckh08?>+b5y?zy$Kq!Y0 zibYn0$6xyNZa%)3r@t%lPCousp+B|g{U>y%AOCnlcNF?_Eio7W$sPxMFA$C?eh{z+ znBT$kxw!?tO^Hp4Yr=}7vqzY3+2VoC4FbMt^KJY??b+-Z=3v*%*oVV@%jR}~fZ~ra z+r{#B2=?&3|%C6acvBZ<*>JqV@Liu7S1sE zQL#-)JuJ6u7MkXSF%Fsx0-+i3Z*8ti!FeOG3A7FN_9Q|a*yQ-~>hlvuNu(Cl{N#=3 z>HB2tC<=*x(x(A0)M^!%d9Ydb8q9{fUN8Gq#*h@o^*p!OC~vr;E~yH`*2#{FQ++Bz z7Cwtai(x=D6cR}rQkp{<;9TH%b6#crYOUmU8h)vCv9f3M$u9nEn9Fstz>DQnN>5T zQb9Lbv+B)L{CC~oDMn$N;s|x$))MU z%YGdEI+Kn?aR-$Dz3cfZ&oY5 iQ>x3u;wwf9-+|O6**D=V;Q|3-M;KrzWH>U$6}bTMBEh}@ literal 0 HcmV?d00001 diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/Project/x86_64-apple-macos.swiftsourceinfo b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/Project/x86_64-apple-macos.swiftsourceinfo new file mode 100644 index 0000000000000000000000000000000000000000..af5eb6878906108d0c865a5cb8b3a4ea02eb4050 GIT binary patch literal 804 zcmY*X&1(};5P#XUrfgaXLG7i7C9SaA{Z6u9l7n4KFJ1!HiwL?&c5Q0x22)yd(ZB zZ{o$=!V=%6#0JGRV8zk-Bh0sK@xbN=0pGCsHvXpeZ1xm$uxoDO&0)V~b4?(i_zq^f zSl$W29=^8P#r#T6oVfX z+mzJ9a?56+X-=5npvfQ*8Ug>(=DHM|HxipdJ76zQBgBDCPOh#$K4z3eYFW)sUx=Q( zPR5R+koYHk8t_uJT5*{h+huQ)*>WG&%KiqUOA6z9o?F~3Z@Ho-sS3l^$c~D$aZiLS zd=`lo!+@$QB$C#pG>5Xlx#IiR%bN&&2K>m>@90_4A#KD5PSLNanxqVen2aUREr6*@ z><@AVB3?oFOvh0)%d(7Y!7wrz$1pY5(6yprIGRx?IB6qm>P1U&GG@W`G9@eH8K#;o zl?s~PnpZEL;NP>xkPfBJt^FEtM<6x_O8l9>`H_(T%z}~}{6hZ;$!VYypoC*wNG?q$ zrq>rxbrg@Fr-w6E0^HgaeRvre&-d%~mEjJ;L6q>N&j0*Euza%yw=dtXS6q47-`=SB iPN^mji^q%CT5rI$Ux91Q2d>2%xY!*xUFbQa zy@N^j#3Ahshx9v`wD%m+SaZl(Xp58P1t*OOP8vYc#=uE?50mB%C3#c&Ak#*11xCDS)b099ZGJ_asoR*(oS?R_P z6bmTI%qvlN)G!Aq^Qd7i$X6f?(xR`guKCT5rI$Ux91Q2d>2%xY!*xUFbQa zy@N^j#3Ahshx9v`wD%m+SaZl(Xp58P1t*OOP8vYc#=uE?50mBS zZentNv7xD+0mKQdf(#6bK&BC!0FPG;!wZNg1JIFm&(ydCfLwDRF19j*7-*c9pI=$& z#t#$=D9X$$QFzoa2PpHXVJ^s5APmx?udlBFkyZjqDuMh612APQKmjGL3`Gzh82|vT C0)n#u literal 0 HcmV?d00001 diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface new file mode 100644 index 00000000000..9400cbf9255 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface @@ -0,0 +1,8 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) +// swift-module-flags: -target x86_64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit +import Swift +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Resources/Info.plist b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Resources/Info.plist new file mode 100644 index 00000000000..c83648529c4 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Resources/Info.plist @@ -0,0 +1,46 @@ + + + + + BuildMachineOSBuild + 24A335 + CFBundleDevelopmentRegion + en + CFBundleExecutable + FooKit + CFBundleIdentifier + org.swift.swiftpm.FooKit + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + FooKit + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSupportedPlatforms + + MacOSX + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 24A336 + DTPlatformName + macosx + DTPlatformVersion + 15.0 + DTSDKBuild + 24A336 + DTSDKName + macosx15.0 + DTXcode + 1600 + DTXcodeBuild + 16A242d + LSMinimumSystemVersion + 15.0 + + diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current new file mode 120000 index 00000000000..8c7e5a667f1 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current @@ -0,0 +1 @@ +A \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Package.swift b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Package.swift index 2ac82d16da6..4cbb8c5f7fd 100644 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Package.swift +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Package.swift @@ -12,14 +12,10 @@ let package = Package( .package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.0.0"), ], targets: [ - .binaryTarget( - name: "MMKV", - url: "https://github.com/Kyle-Ye/MMKV/releases/download/v1.3.5-binary/MMKV.xcframework.zip", - checksum: "181709ac82514e7f243b338e2ac221c203741837e7f51e1922582d3f132d5b78" - ), + .binaryTarget(name: "FooKit", path: "FooKit.xcframework"), .target( name: "DemoKit", - dependencies: ["MMKV"] + dependencies: ["FooKit"] ), ] ) diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Sources/DemoKit/DemoKit.swift b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Sources/DemoKit/DemoKit.swift index 473566e0f51..c2dd58cdb35 100644 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Sources/DemoKit/DemoKit.swift +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Sources/DemoKit/DemoKit.swift @@ -1,8 +1,7 @@ -import MMKV +import FooKit -public struct Demo { - public static func greeting() { - let _ = MMKV() - print("Hello") - } +public func greeting(_ name: String) { + FooKit.foo() + print("Hello \(name)") } + diff --git a/Tests/BuildTests/PluginsBuildPlanTests.swift b/Tests/BuildTests/PluginsBuildPlanTests.swift index 50a130069d1..b25aa265d28 100644 --- a/Tests/BuildTests/PluginsBuildPlanTests.swift +++ b/Tests/BuildTests/PluginsBuildPlanTests.swift @@ -85,7 +85,7 @@ final class PluginsBuildPlanTests: XCTestCase { try await fixture(name: "Miscellaneous/Plugins/DocCForBinaryDependency") { fixturePath in // Before we add -F support, this call will throw since the command will abort with a non-zero exit code let (stdout, _) = try await executeSwiftPackage(fixturePath, extraArgs: ["generate-documentation", "--target", "DemoKit"]) - XCTAssertTrue(localFileSystem.exists(fixturePath.appending(RelativePath(".build/plugins/Swift-DocC/outputs/DemoKit.doccarchive/documentation/demokit/demo/greeting()/index.html")))) + XCTAssertTrue(localFileSystem.exists(fixturePath.appending(RelativePath(".build/plugins/Swift-DocC/outputs/DemoKit.doccarchive")))) } } #endif From 642ec156a42001ed5ee8f56e356e2d3b7ec9b5a1 Mon Sep 17 00:00:00 2001 From: Kyle Date: Mon, 30 Sep 2024 00:52:33 +0800 Subject: [PATCH 04/21] Fix CI build issue for Swift 6 language mode --- .../Plugins/DocCForBinaryDependency/Package.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Package.swift b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Package.swift index 4cbb8c5f7fd..cbbe2f5eeb5 100644 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Package.swift +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Package.swift @@ -1,6 +1,4 @@ -// swift-tools-version: 6.0 -// The swift-tools-version declares the minimum version of Swift required to build this package. - +// swift-tools-version: 5.9 import PackageDescription let package = Package( From 3710189c1d1a7eaea2c06eb156dc76fe3e3decf3 Mon Sep 17 00:00:00 2001 From: Kyle Date: Mon, 30 Sep 2024 11:14:31 +0800 Subject: [PATCH 05/21] Add header file for FooKit xcframework --- .../FooKit.framework/Headers | 1 + .../FooKit.framework/Versions/A/FooKit | Bin 135744 -> 137632 bytes .../Versions/A/Headers/FooKit.h | 7 +++++++ .../Project/arm64-apple-macos.swiftsourceinfo | Bin 804 -> 804 bytes .../x86_64-apple-macos.swiftsourceinfo | Bin 804 -> 804 bytes .../arm64-apple-macos.private.swiftinterface | 1 + .../arm64-apple-macos.swiftdoc | Bin 500 -> 500 bytes .../arm64-apple-macos.swiftinterface | 1 + .../x86_64-apple-macos.private.swiftinterface | 1 + .../x86_64-apple-macos.swiftdoc | Bin 500 -> 500 bytes .../x86_64-apple-macos.swiftinterface | 1 + .../Versions/A/Modules/module.modulemap | 6 ++++++ .../Sources/DemoKit/DemoKit.swift | 2 +- 13 files changed, 19 insertions(+), 1 deletion(-) create mode 120000 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Headers create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Headers/FooKit.h create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/module.modulemap diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Headers b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Headers new file mode 120000 index 00000000000..a177d2a6b92 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Headers @@ -0,0 +1 @@ +Versions/Current/Headers \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/FooKit b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/FooKit index 47deeea3c8f9da57541314007dfe0b2f3169a469..aed216176312e11e8f7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oOiEdnF?l{g!$^vyk>fewo37+VQyEA}N{U3K*FyyOniyl!s~JL6(bBfXtx zZD++<&)q*cvRr%&m5J%}P3w7ehfjgua^`ww5X^!$wYz7Y<6miZ7hx8*kW$uSGif^x zF=wo5?<*`JuW-z(&M_zD>Bo1bSl>3@QlZwn6Sa&dlfUdWF%)*l9>}s!ro4^IWxexD zS9kKP6yr^D`*X}W<#IuM9?{;)j=Gpiqfz}W7vVKblUF8xoD4K@R0@v#K5kP=r`=1B zPTflnI7KXb;#wCQ-{x3{>IzWe?{s`E`g1yI;?TbIR|dA>F@jA|44cKFF2QVJxVOia zt!%fA%=KO@Z!`_H7wIp3s#_HpA9l7izxn!K`c3B@bl1fB zu`Ssasci*`fy;NzO3g@^VVzZ5>T~vTZJx7Ed4l(oCM)5-)Xb}?wJh5V8MZDo)b`lj z0KG(32DhqE<7t9-$hLhpMoDxODG%{J++pQ)Jf z@$~`iCYk@*958H*;W;WbQAWRMl>vz3rYP3~qo$A!0{~SawZni>S4d?T@Rcm2I#|$y zp?gRbSTL@Onjh5#461Z7Y&c|eEp~ZGUfLJj`TJhJ-|9kIrvacZ>JUW6Eu#)Ek%l?| z26%qqtOH0^8N>0s7zh|DWpp~gp97Xk8IEJDQpPx|lp!8_K9MpQ-zoxm`Yo#?eQ+ZP zLA!c@#lBkjFmELz&gw>oHVxv{D?TDUDv_?ZjK9A?tn3Ma4~ffsci%JF>jEA zMu7_k6frT?^Gdzil9?Y}QbCk1c87|?;nsZkd9j`xXHg{An6NZ#}q51vF z@?f|NtTx65GgtDhB4Vw5cuQQ_F_!F6y;$(vLQXi8ui5SzAf~k3iV6(G*RROK&L57M zKWTwI<^3bIi#ktQWhAzKLAWAwviWeB*3vsHuQtoZn;}_ecu6!N(WxMc{~_~e5~tC@ zwG_$zQn5^OzaxSeU9<+fIZDo;@q{*#iW>&i=9dB + +//! Project version number for FooKit. +FOUNDATION_EXPORT double FooKitVersionNumber; + +//! Project version string for FooKit. +FOUNDATION_EXPORT const unsigned char FooKitVersionString[]; diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/Project/arm64-apple-macos.swiftsourceinfo b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/Project/arm64-apple-macos.swiftsourceinfo index e3f29ed444a984011dba3d499468b0fde0e575a9..5472f91f9cbb5fbcb75f5c14a6e18d4e9a3dfaaf 100644 GIT binary patch delta 19 bcmZ3&wuEg13lrOk)y3N?pKa!1l41k^NN)z_ delta 19 bcmZ3&wuEg13lrM}Wkb=Uhc~kHOysXU|;}Y0U*}b*H?f@E2T|7%BT+j*{Ki@ delta 51 zcmeyu{DpbLJVy0^qRhM!g+~o@-174uHOysXU|;}Y0U*}b*H?f@E4fWR%BT+j&FK%1 diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface index 9fa1b47d376..c51762a0a1b 100644 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface @@ -1,6 +1,7 @@ // swift-interface-format-version: 1.0 // swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) // swift-module-flags: -target arm64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit +@_exported import FooKit import Swift import _Concurrency import _StringProcessing diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface index 9400cbf9255..6f4238a2549 100644 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface @@ -1,6 +1,7 @@ // swift-interface-format-version: 1.0 // swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) // swift-module-flags: -target x86_64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit +@_exported import FooKit import Swift import _Concurrency import _StringProcessing diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftdoc b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftdoc index 3e70f9f8a8ab99e3a5a435ccf0711dae5092e7e1..e9ca460de1bdedff42f60ddb090beabb1619817c 100644 GIT binary patch delta 51 zcmeyu{DpbLJVy0`qRhM!g+~o@((>~kHOysXU|;}Y0U*}b*H?f@E2T|7%BT+j*{Ki@ delta 51 zcmeyu{DpbLJVy0^qRhM!g+~o@-174uHOysXU|;}Y0U*}b*H?f@E4fWR%BT+j&FK%1 diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface index 9400cbf9255..6f4238a2549 100644 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface @@ -1,6 +1,7 @@ // swift-interface-format-version: 1.0 // swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) // swift-module-flags: -target x86_64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit +@_exported import FooKit import Swift import _Concurrency import _StringProcessing diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/module.modulemap b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/module.modulemap new file mode 100644 index 00000000000..33f45d3d07c --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module FooKit { + umbrella header "FooKit.h" + export * + + module * { export * } +} diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Sources/DemoKit/DemoKit.swift b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Sources/DemoKit/DemoKit.swift index c2dd58cdb35..5c0f7ee00be 100644 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Sources/DemoKit/DemoKit.swift +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Sources/DemoKit/DemoKit.swift @@ -2,6 +2,6 @@ import FooKit public func greeting(_ name: String) { FooKit.foo() - print("Hello \(name)") + print("Hello \(name) with FooKit \(FooKitVersionNumber)") } From de4737ce859fc2352cf21878c40a353fc7ebca56 Mon Sep 17 00:00:00 2001 From: Kyle Date: Mon, 30 Sep 2024 11:40:27 +0800 Subject: [PATCH 06/21] Remove swift-docc-plugin dependency --- .../DocCForBinaryDependency/Package.swift | 12 +++++++++--- .../GetSymbolGraphPlugin.swift | 19 +++++++++++++++++++ Tests/BuildTests/PluginsBuildPlanTests.swift | 5 ++--- 3 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Plugins/GenerateSymbolGraphPlugin/GetSymbolGraphPlugin.swift diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Package.swift b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Package.swift index cbbe2f5eeb5..db47b9de032 100644 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Package.swift +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Package.swift @@ -6,10 +6,16 @@ let package = Package( products: [ .library(name: "DemoKit", targets: ["DemoKit"]), ], - dependencies: [ - .package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.0.0"), - ], targets: [ + .plugin( + name: "GenerateSymbolGraphPlugin", + capability: .command( + intent: .custom( + verb: "generate-symbol-graph", + description: "Generate symbol graph for all Swift source targets." + ) + ) + ), .binaryTarget(name: "FooKit", path: "FooKit.xcframework"), .target( name: "DemoKit", diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Plugins/GenerateSymbolGraphPlugin/GetSymbolGraphPlugin.swift b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Plugins/GenerateSymbolGraphPlugin/GetSymbolGraphPlugin.swift new file mode 100644 index 00000000000..da90c3a805b --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Plugins/GenerateSymbolGraphPlugin/GetSymbolGraphPlugin.swift @@ -0,0 +1,19 @@ +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2022-2024 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for Swift project authors + +import Foundation +import PackagePlugin + +/// Creates a Swift-DocC documentation archive from a Swift Package. +@main struct GenerateSymbolGraphPlugin: CommandPlugin { + func performCommand(context: PluginContext, arguments: [String]) throws { + for target in context.package.targets where target is SwiftSourceModuleTarget { + let _ = try packageManager.getSymbolGraph(for: target, options: .init()) + } + } +} diff --git a/Tests/BuildTests/PluginsBuildPlanTests.swift b/Tests/BuildTests/PluginsBuildPlanTests.swift index b25aa265d28..2493e0e7216 100644 --- a/Tests/BuildTests/PluginsBuildPlanTests.swift +++ b/Tests/BuildTests/PluginsBuildPlanTests.swift @@ -83,9 +83,8 @@ final class PluginsBuildPlanTests: XCTestCase { #if canImport(Darwin) // xcframework support is only supported on Darwin platform func testDocCPluginForBinaryDependency() async throws { try await fixture(name: "Miscellaneous/Plugins/DocCForBinaryDependency") { fixturePath in - // Before we add -F support, this call will throw since the command will abort with a non-zero exit code - let (stdout, _) = try await executeSwiftPackage(fixturePath, extraArgs: ["generate-documentation", "--target", "DemoKit"]) - XCTAssertTrue(localFileSystem.exists(fixturePath.appending(RelativePath(".build/plugins/Swift-DocC/outputs/DemoKit.doccarchive")))) + // Before we add -F support for xcframework, this call will throw since the command will abort with a non-zero exit code + let _ = try await executeSwiftPackage(fixturePath, extraArgs: ["generate-symbol-graph"]) } } #endif From 03ed4c289fa3c8ec8df462f16eaba0c77776ed54 Mon Sep 17 00:00:00 2001 From: Kyle Date: Mon, 30 Sep 2024 22:50:54 +0800 Subject: [PATCH 07/21] Replace binary with GitHub Action output https://github.com/Kyle-Ye/swift-package-manager-fookit/releases/0.0.1 MachO md5 value 73901c8f22a46220cd8d071b48c9e21a --- .../FooKit.framework/FooKit | Bin 23 -> 135824 bytes .../FooKit.framework/Headers | 1 - .../FooKit.framework/Headers/FooKit.h | 7 +++ .../FooKit.framework/Modules | 1 - .../arm64-apple-macos.abi.json | 32 ++++++++++++ .../arm64-apple-macos.private.swiftinterface | 9 ++++ .../arm64-apple-macos.swiftinterface | 9 ++++ .../x86_64-apple-macos.abi.json | 32 ++++++++++++ .../x86_64-apple-macos.private.swiftinterface | 9 ++++ .../x86_64-apple-macos.swiftinterface | 9 ++++ .../FooKit.framework/Modules/module.modulemap | 6 +++ .../FooKit.framework/Resources | 1 - .../FooKit.framework/Resources/Info.plist | 46 ++++++++++++++++++ .../FooKit.framework/Versions/A/FooKit | Bin 137632 -> 135824 bytes .../Project/arm64-apple-macos.swiftsourceinfo | Bin 804 -> 0 bytes .../x86_64-apple-macos.swiftsourceinfo | Bin 804 -> 0 bytes .../arm64-apple-macos.swiftdoc | Bin 500 -> 0 bytes .../x86_64-apple-macos.swiftdoc | Bin 500 -> 0 bytes .../Versions/A/Resources/Info.plist | 2 +- .../FooKit.framework/Versions/Current | 1 - .../FooKit.framework/Versions/Current/FooKit | Bin 0 -> 135824 bytes .../Versions/Current/Headers/FooKit.h | 7 +++ .../arm64-apple-macos.abi.json | 32 ++++++++++++ .../arm64-apple-macos.private.swiftinterface | 9 ++++ .../arm64-apple-macos.swiftinterface | 9 ++++ .../x86_64-apple-macos.abi.json | 32 ++++++++++++ .../x86_64-apple-macos.private.swiftinterface | 9 ++++ .../x86_64-apple-macos.swiftinterface | 9 ++++ .../Versions/Current/Modules/module.modulemap | 6 +++ .../Versions/Current/Resources/Info.plist | 46 ++++++++++++++++++ 30 files changed, 319 insertions(+), 5 deletions(-) mode change 120000 => 100755 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/FooKit delete mode 120000 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Headers create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Headers/FooKit.h delete mode 120000 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/module.modulemap delete mode 120000 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Resources create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Resources/Info.plist delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/Project/arm64-apple-macos.swiftsourceinfo delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/Project/x86_64-apple-macos.swiftsourceinfo delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftdoc delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftdoc delete mode 120000 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current create mode 100755 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/FooKit create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Headers/FooKit.h create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/module.modulemap create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Resources/Info.plist diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/FooKit b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/FooKit deleted file mode 120000 index a042ad394e1..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/FooKit +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/FooKit \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/FooKit b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/FooKit new file mode 100755 index 0000000000000000000000000000000000000000..0fad02eff48fe16ad64f8c16426ed0481ee40b88 GIT binary patch literal 135824 zcmeI53vg6bn#WHk0Rr-f;3JN&t^ypeAPEl@T!l_Lj}DI{lduq1rY_ydP3J;CGWXt= zw20GFgHyaLGsw6&jw`d2Gw7@ZrB30htN0ik#}}aMs#_wiY%RK=tTTf=#O(Lob8foR zkfte}vaI@_s&mi%pYwg+J@;4J}Q3FMTe18H=If# z=tOu%_t0@9OC%5g0T2KI5C8!X009sH0T2KI5C8!X009sH0T2KI5C8!X009sH0T2KI z5C8!X009sH0T2KI5C8!X009sH0T2KI5C8!X009sH0T2KI5C8!X009sH0T2KI5CDO1 zmcSb)4u3@-{(I=de=(TySjrW{gt$YL6!DcVq5KYg|F3BaYFZa?O;##7vmQj%Ze|Nj zv-NH}ZJQl0rT((OE@i^n>457}BvS4vmzrkTiICM-l^w5klx!+h7OeTt7`Ule#p8SC zq-kyOn3e8ecDyAj-c)HWSoiCns&@jKyL3?+~23};-cD;HF1{>FwDIlAt64p8zuaWk7} zS~#Aj#`?_hD%?Jh6Z^Y~`Db!GeH{A7t5E&wRsmRN#&hGkrKZJ0OWQOf8Vu`0>Ko?P zRM*SVq=#8uBc)2EyM7=w_s8uM*NmXdarn8B_0qy;b_MOu^4fTOu3?vTn8B#NJZ>&4 zU#OdwK~GM3rD`KTPSb@*IVk9Qr4(YC(xp>`Xrgvz%-855eHE3*$Y2vK80XPBw{se; zGTUCD&Z#(K+D-oMvy^FYDG9z#&E}b}HQzYv`3(mjx!~@5tr~ugy_DrW^20OAId{fs z$jwDpQ;pMqDmhV%)Dl@beed<`qpnW!l(!@;TaT8{GeTz2OqSQWWGv#5h|wSuoip+B zXS7p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&xI@T)TVS`x93_y6WAt#s9kP{<|*xI5K(i-XXtz zYv}nm9JnBG;C~+2Km3*9dpDP^aHvfk0KfdF$Uq3#5N!{Ad9=ZPcx*d}a zJ+}6~Q6Jv_=|z92A78VQCLH}tkrV2~zVrCJ?*~-h?7;~LfB*=900@8p2!H?xfB*=9 z00@8p2!H?xfB*=900@8p2!H?xfB*=900@8p2!H?xfB*=900@8p2!H?xfB*=900@8p p2!H?xfB*=900@8p2!H?xfB*=900@8p2!H?xfB*=9z;~Iz{{t!%^@;!h literal 0 HcmV?d00001 diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Headers b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Headers deleted file mode 120000 index a177d2a6b92..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Headers +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/Headers \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Headers/FooKit.h b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Headers/FooKit.h new file mode 100644 index 00000000000..27365056b11 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Headers/FooKit.h @@ -0,0 +1,7 @@ +#import + +//! Project version number for FooKit. +FOUNDATION_EXPORT double FooKitVersionNumber; + +//! Project version string for FooKit. +FOUNDATION_EXPORT const unsigned char FooKitVersionString[]; diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules deleted file mode 120000 index 5736f3186e7..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/Modules \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json new file mode 100644 index 00000000000..60f43c90c14 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json @@ -0,0 +1,32 @@ +{ + "ABIRoot": { + "kind": "Root", + "name": "FooKit", + "printedName": "FooKit", + "children": [ + { + "kind": "Function", + "name": "foo", + "printedName": "foo()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Func", + "usr": "s:6FooKit3fooyyF", + "mangledName": "$s6FooKit3fooyyF", + "moduleName": "FooKit", + "declAttributes": [ + "AccessControl", + "RawDocComment" + ], + "funcSelfKind": "NonMutating" + } + ], + "json_format_version": 8 + }, + "ConstValues": [] +} \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface new file mode 100644 index 00000000000..c51762a0a1b --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface @@ -0,0 +1,9 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) +// swift-module-flags: -target arm64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit +@_exported import FooKit +import Swift +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface new file mode 100644 index 00000000000..c51762a0a1b --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface @@ -0,0 +1,9 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) +// swift-module-flags: -target arm64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit +@_exported import FooKit +import Swift +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json new file mode 100644 index 00000000000..60f43c90c14 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json @@ -0,0 +1,32 @@ +{ + "ABIRoot": { + "kind": "Root", + "name": "FooKit", + "printedName": "FooKit", + "children": [ + { + "kind": "Function", + "name": "foo", + "printedName": "foo()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Func", + "usr": "s:6FooKit3fooyyF", + "mangledName": "$s6FooKit3fooyyF", + "moduleName": "FooKit", + "declAttributes": [ + "AccessControl", + "RawDocComment" + ], + "funcSelfKind": "NonMutating" + } + ], + "json_format_version": 8 + }, + "ConstValues": [] +} \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface new file mode 100644 index 00000000000..6f4238a2549 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface @@ -0,0 +1,9 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) +// swift-module-flags: -target x86_64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit +@_exported import FooKit +import Swift +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface new file mode 100644 index 00000000000..6f4238a2549 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface @@ -0,0 +1,9 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) +// swift-module-flags: -target x86_64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit +@_exported import FooKit +import Swift +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/module.modulemap b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/module.modulemap new file mode 100644 index 00000000000..33f45d3d07c --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module FooKit { + umbrella header "FooKit.h" + export * + + module * { export * } +} diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Resources b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Resources deleted file mode 120000 index 953ee36f3bb..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Resources +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/Resources \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Resources/Info.plist b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Resources/Info.plist new file mode 100644 index 00000000000..0f1101c9fcb --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Resources/Info.plist @@ -0,0 +1,46 @@ + + + + + BuildMachineOSBuild + 23G93 + CFBundleDevelopmentRegion + en + CFBundleExecutable + FooKit + CFBundleIdentifier + org.swift.swiftpm.FooKit + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + FooKit + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSupportedPlatforms + + MacOSX + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 24A336 + DTPlatformName + macosx + DTPlatformVersion + 15.0 + DTSDKBuild + 24A336 + DTSDKName + macosx15.0 + DTXcode + 1600 + DTXcodeBuild + 16A242d + LSMinimumSystemVersion + 15.0 + + diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/FooKit b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/FooKit index aed216176312e11e8f7ca671798b5fdbcbbccc1b..0fad02eff48fe16ad64f8c16426ed0481ee40b88 100755 GIT binary patch delta 2204 zcmeH{ZD>Vb?O?4=SO{oK{h-#bXeUY0 zjVxBY?bWp^y0}qs6KPA72#OXr9mTI!M9@u*=noaQR)3VVW$1hEd2^70us`nCUO4xj z=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QSZqeunKJLx4)~k+up7Qaa4$8)bAIjStTy{PolOkI9xMi;@U_~GM3Uo?BYrul(3I}W_O zYreJ37lV#@yuJ}^wd^;~yJm|5HpUKGyDVn%uJD-6y>?pJ zMQFamyRICZ+wo;(yze1G8*i{JO(fQ}!kkC8sTG!{5_>w@2f>}N9|U{ffe^iG>j@;D z0^y;dORI>WYmVRfRsPY;XSC?#gqD9~etXWu>BhYlJ^CFwLx!*wHQd)RiY=qF$M=TCQ_i|!!WNM@^DK0i8RS0c}#Zd{KLQggz)t`NV zp-!BnMc=RMOX8q0AE+Qw=oOyO4bytP;XtWEDcAS3vJ4qUmGqP=a%H+)N*5wV3JPWD z5g=Hx41xbKm7$g5-T~QUPFPpJ+?e?I0P)Bur6ed$SJ*o`JH7|96SIaP@Z~yP7fR?J zLd10cJ*^r{5C9bM$*%)tCMV4gICXX!|9ZqG(aM4YiO%v*ss7$JOOqe-cC482(FWbG zed1Jql<(;1I3xSqn$PUk?$rDI?roFQ?%U0`OmCfe-S*Mp#c31xe|}PM`faz>H5Yqz0Uby_x4|6XB3^kaX{OZWbgMAba18iNX`5r?$ z9?EkFS+(xBW)Ta28thnprlQr>SD#m&KQeki%JZp97VP*YdEL1d;VwhMh9`7%*%fy1 z(t{nd`%-s@_lS;ZA3I7mF3V%nm937^<6m_^PbT1m319-4049J5U;>x`CV&ZG0+;|M zfC*p%m;fe#319-4049J5U;>x`CV&ZG0+;|MfC*p%m;fe#319-4049J5U;>x`CV&ZG X0+;|MfC*p%m;fe#319;MN&^1}?<0eM diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/Project/arm64-apple-macos.swiftsourceinfo b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/Project/arm64-apple-macos.swiftsourceinfo deleted file mode 100644 index 5472f91f9cbb5fbcb75f5c14a6e18d4e9a3dfaaf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 804 zcmY*X&1(};5P#XErfgaXMeL=A5F_k%Kl8D>S;@h!r57&&>qR`cNp@{&+6~>(lAA6$ zR0x_w@Fe&_Jhe8d6i*S$6CsBP75X=b$9OE{;Ji(Pb(VSao0&JinfKlf-@JSgm_{gv z5DEv@_=g{dbUPn8$kSitNGBipB-0<7^x-4AGmN}Hp*u3YUyUXrKbW4!oqBwa;zl0R z#asg~<`PR>ixTP-TZa_~ZyaN;X$W0|9eG^c;9B@w^3-7Zn1x*np?62arolFVfZ}?X z8DMG82M74h>Hu?R9^W99Y@32gscS3_C?R+I8B@o68#5z{ZDD9E`MvoZGx5(b-^btw zg%%~AVyS5`&@{(~SZFfx_`1ivHrN3L=M99X(H_{FGYGL@=cZQIpPt0zXnZ-DpSc$N z{&p^W9E8L_8Pb54s?~}WySH1mw_`ijmRoii(UNZXE6tF4T85Dub*FMjp+7lNhxF5JHKq*k${WoLJ@ j;+Q2@8W&$OqW=!0ZjO27&*Co-Aa;TQ`a*^yV_cHInJvRP diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/Project/x86_64-apple-macos.swiftsourceinfo b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/Project/x86_64-apple-macos.swiftsourceinfo deleted file mode 100644 index e64d319f9c8953c0b3ece81d2f263392d4a21b3c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 804 zcmY*X&1(};5P#XUrfgCPLF}c6C05w&e&%DpBnP{eUc3aX7ZG%m?Ap}W4Q^@8O_v-h z6wM)c68xZ^T5T((r-e=g%Tj2o(@Q zvB-*W`~864DaQAT^k*f$UyOfL=yxsp!(DoR5Py3@?<@3fJvkTu#&!a}9|#?a9|r6J z=C|>DVQztMQ(}|iny}*Nr6bI@Eb+kNh5_HS_%{BM>04|UbFgc6;?3cpWpUd;K=B>S z_OQGaf<1g~xrh1FK-eag+zthm@_{wqqr}41Cu|c7JD43(TpL4UIqWSI*s*_#g)Rm^ zDz+)9kL8xdLeqjU!9kN@AT$I1rN#9qIBz62g|@(6P9VgAO-(MZK0aZTWO^}EOk9Y5 zeVvLOMIrG|1~lM>dcEc_H#V#8I?H8 zEPN)3mcu|sQ%EGMNm&l%fpf|8u2GpeMFhM0^c(Jg@K zi|luD1|n`ra}C>8RMRx|d`Z`HIa@bWN7vM{uG^|!D%n{*Z)jyxv2#YradQ5nAqPMwL j^X!T*kBZM2DSQV~mttRpvxEx-h#g~qp^)Lo7-!@Ur+dRj diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftdoc b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftdoc deleted file mode 100644 index 9835b680228ec206770527c2627ec84118147c5f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 500 zcmaDfX9YVW2Lpp90|Ns)qlJ#c+7Dby0=U-%aP4>CT5rI$Ux91Q2d>2%xY!*xUFbQa zy@N^j#3Ahshx9v`wD%m+SaZl(Xp58P1t*OOP8vYc#=uE?50mB%C3#c&Ak#*11xCDS)b099ZGJ_asoR*(oS?R_P z6e}po%qvlN)G!Aq^r&Gj$X6f?(xR`guKCT5rI$Ux91Q2d>2%xY!*xUFbQa zy@N^j#3Ahshx9v`wD%m+SaZl(Xp58P1t*OOP8vYc#=uE?50mBS zZentNv7xD+0mKQdf(#6bK&BC!0FPG;!wZNg1JIFm&(ydCfLwDRF19j*7-*c9pI=$& z#t#%LD9X$$QFzoa2PpKYVJ^s5APmx?udlBFkyZjqDuMh612APQKmjGL3`Gzh82|v! CLW45^ diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Resources/Info.plist b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Resources/Info.plist index c83648529c4..0f1101c9fcb 100644 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Resources/Info.plist +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Resources/Info.plist @@ -3,7 +3,7 @@ BuildMachineOSBuild - 24A335 + 23G93 CFBundleDevelopmentRegion en CFBundleExecutable diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current deleted file mode 120000 index 8c7e5a667f1..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current +++ /dev/null @@ -1 +0,0 @@ -A \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/FooKit b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/FooKit new file mode 100755 index 0000000000000000000000000000000000000000..0fad02eff48fe16ad64f8c16426ed0481ee40b88 GIT binary patch literal 135824 zcmeI53vg6bn#WHk0Rr-f;3JN&t^ypeAPEl@T!l_Lj}DI{lduq1rY_ydP3J;CGW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%^@;!h literal 0 HcmV?d00001 diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Headers/FooKit.h b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Headers/FooKit.h new file mode 100644 index 00000000000..27365056b11 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Headers/FooKit.h @@ -0,0 +1,7 @@ +#import + +//! Project version number for FooKit. +FOUNDATION_EXPORT double FooKitVersionNumber; + +//! Project version string for FooKit. +FOUNDATION_EXPORT const unsigned char FooKitVersionString[]; diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json new file mode 100644 index 00000000000..60f43c90c14 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json @@ -0,0 +1,32 @@ +{ + "ABIRoot": { + "kind": "Root", + "name": "FooKit", + "printedName": "FooKit", + "children": [ + { + "kind": "Function", + "name": "foo", + "printedName": "foo()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Func", + "usr": "s:6FooKit3fooyyF", + "mangledName": "$s6FooKit3fooyyF", + "moduleName": "FooKit", + "declAttributes": [ + "AccessControl", + "RawDocComment" + ], + "funcSelfKind": "NonMutating" + } + ], + "json_format_version": 8 + }, + "ConstValues": [] +} \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface new file mode 100644 index 00000000000..c51762a0a1b --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface @@ -0,0 +1,9 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) +// swift-module-flags: -target arm64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit +@_exported import FooKit +import Swift +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface new file mode 100644 index 00000000000..c51762a0a1b --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface @@ -0,0 +1,9 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) +// swift-module-flags: -target arm64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit +@_exported import FooKit +import Swift +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json new file mode 100644 index 00000000000..60f43c90c14 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json @@ -0,0 +1,32 @@ +{ + "ABIRoot": { + "kind": "Root", + "name": "FooKit", + "printedName": "FooKit", + "children": [ + { + "kind": "Function", + "name": "foo", + "printedName": "foo()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Func", + "usr": "s:6FooKit3fooyyF", + "mangledName": "$s6FooKit3fooyyF", + "moduleName": "FooKit", + "declAttributes": [ + "AccessControl", + "RawDocComment" + ], + "funcSelfKind": "NonMutating" + } + ], + "json_format_version": 8 + }, + "ConstValues": [] +} \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface new file mode 100644 index 00000000000..6f4238a2549 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface @@ -0,0 +1,9 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) +// swift-module-flags: -target x86_64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit +@_exported import FooKit +import Swift +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface new file mode 100644 index 00000000000..6f4238a2549 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface @@ -0,0 +1,9 @@ +// swift-interface-format-version: 1.0 +// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) +// swift-module-flags: -target x86_64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit +@_exported import FooKit +import Swift +import _Concurrency +import _StringProcessing +import _SwiftConcurrencyShims +public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/module.modulemap b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/module.modulemap new file mode 100644 index 00000000000..33f45d3d07c --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module FooKit { + umbrella header "FooKit.h" + export * + + module * { export * } +} diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Resources/Info.plist b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Resources/Info.plist new file mode 100644 index 00000000000..0f1101c9fcb --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Resources/Info.plist @@ -0,0 +1,46 @@ + + + + + BuildMachineOSBuild + 23G93 + CFBundleDevelopmentRegion + en + CFBundleExecutable + FooKit + CFBundleIdentifier + org.swift.swiftpm.FooKit + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + FooKit + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSupportedPlatforms + + MacOSX + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 24A336 + DTPlatformName + macosx + DTPlatformVersion + 15.0 + DTSDKBuild + 24A336 + DTSDKName + macosx15.0 + DTXcode + 1600 + DTXcodeBuild + 16A242d + LSMinimumSystemVersion + 15.0 + + From 120216098e7679a5594e9eaad1b0c80a18b56ba4 Mon Sep 17 00:00:00 2001 From: Kyle Date: Mon, 30 Sep 2024 23:51:07 +0800 Subject: [PATCH 08/21] Use on-the-fly build of xcframework instead of prebuild artifact for better diff and review --- .../FooKit.xcframework/Info.plist | 28 -- .../FooKit.framework/FooKit | Bin 135824 -> 0 bytes .../arm64-apple-macos.abi.json | 32 -- .../arm64-apple-macos.private.swiftinterface | 9 - .../arm64-apple-macos.swiftinterface | 9 - .../x86_64-apple-macos.abi.json | 32 -- .../x86_64-apple-macos.private.swiftinterface | 9 - .../x86_64-apple-macos.swiftinterface | 9 - .../FooKit.framework/Modules/module.modulemap | 6 - .../FooKit.framework/Resources/Info.plist | 46 --- .../FooKit.framework/Versions/A/FooKit | Bin 135824 -> 0 bytes .../Versions/A/Headers/FooKit.h | 7 - .../arm64-apple-macos.abi.json | 32 -- .../arm64-apple-macos.private.swiftinterface | 9 - .../arm64-apple-macos.swiftinterface | 9 - .../x86_64-apple-macos.abi.json | 32 -- .../x86_64-apple-macos.private.swiftinterface | 9 - .../x86_64-apple-macos.swiftinterface | 9 - .../Versions/A/Modules/module.modulemap | 6 - .../Versions/A/Resources/Info.plist | 46 --- .../FooKit.framework/Versions/Current/FooKit | Bin 135824 -> 0 bytes .../Versions/Current/Headers/FooKit.h | 7 - .../arm64-apple-macos.abi.json | 32 -- .../arm64-apple-macos.private.swiftinterface | 9 - .../arm64-apple-macos.swiftinterface | 9 - .../x86_64-apple-macos.abi.json | 32 -- .../x86_64-apple-macos.private.swiftinterface | 9 - .../x86_64-apple-macos.swiftinterface | 9 - .../Versions/Current/Modules/module.modulemap | 6 - .../Versions/Current/Resources/Info.plist | 46 --- .../FooKit/FooKit.xcodeproj/project.pbxproj | 369 ++++++++++++++++++ .../FooKit/FooKit/Foo.swift | 4 + .../Headers => FooKit/FooKit}/FooKit.h | 0 .../FooKit/Scripts/archive_xcframework.sh | 26 ++ Tests/BuildTests/PluginsBuildPlanTests.swift | 7 +- 35 files changed, 405 insertions(+), 499 deletions(-) delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/Info.plist delete mode 100755 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/FooKit delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/module.modulemap delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Resources/Info.plist delete mode 100755 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/FooKit delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Headers/FooKit.h delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/module.modulemap delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Resources/Info.plist delete mode 100755 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/FooKit delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Headers/FooKit.h delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/module.modulemap delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Resources/Info.plist create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj create mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/FooKit/Foo.swift rename Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/{FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Headers => FooKit/FooKit}/FooKit.h (100%) create mode 100755 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/Scripts/archive_xcframework.sh diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/Info.plist b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/Info.plist deleted file mode 100644 index 7b2797a10a0..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/Info.plist +++ /dev/null @@ -1,28 +0,0 @@ - - - - - AvailableLibraries - - - BinaryPath - FooKit.framework/Versions/A/FooKit - LibraryIdentifier - macos-arm64_x86_64 - LibraryPath - FooKit.framework - SupportedArchitectures - - arm64 - x86_64 - - SupportedPlatform - macos - - - CFBundlePackageType - XFWK - XCFrameworkFormatVersion - 1.0 - - diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/FooKit b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/FooKit deleted file mode 100755 index 0fad02eff48fe16ad64f8c16426ed0481ee40b88..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 135824 zcmeI53vg6bn#WHk0Rr-f;3JN&t^ypeAPEl@T!l_Lj}DI{lduq1rY_ydP3J;CGWXt= zw20GFgHyaLGsw6&jw`d2Gw7@ZrB30htN0ik#}}aMs#_wiY%RK=tTTf=#O(Lob8foR zkfte}vaI@_s&mi%pYwg+J@;4J}Q3FMTe18H=If# z=tOu%_t0@9OC%5g0T2KI5C8!X009sH0T2KI5C8!X009sH0T2KI5C8!X009sH0T2KI z5C8!X009sH0T2KI5C8!X009sH0T2KI5C8!X009sH0T2KI5C8!X009sH0T2KI5CDO1 zmcSb)4u3@-{(I=de=(TySjrW{gt$YL6!DcVq5KYg|F3BaYFZa?O;##7vmQj%Ze|Nj zv-NH}ZJQl0rT((OE@i^n>457}BvS4vmzrkTiICM-l^w5klx!+h7OeTt7`Ule#p8SC zq-kyOn3e8ecDyAj-c)HWSoiCns&@jKyL3?+~23};-cD;HF1{>FwDIlAt64p8zuaWk7} zS~#Aj#`?_hD%?Jh6Z^Y~`Db!GeH{A7t5E&wRsmRN#&hGkrKZJ0OWQOf8Vu`0>Ko?P zRM*SVq=#8uBc)2Ey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VC=A0S9DE^O@FZald4@uH!s^z*S&00(%aMUJAGuLd;Op}o3}SNEKNQ8()YGZKDPI| z-(2iJ{<8y(V^-YlTQPLW$yMPSZuLB{=-#`I{IYiKv&WV`edy@tJHCHyXzSL$YhGFw zX?<(v9stu_Uu_!(AYYt_qNAx zyY-Iu{%u`g&7|L+t$oIU(m&jK;L%qX4!d;Xj2{M1O*wqe?TNO9FWh_Z_QpTI8C|&X z?wXp*cD(uNmjQFj%BS>Mi#Hy==&xI@T)TVS`x93_y6WAt#s9kP{<|*xI5K(i-XXtz zYv}nm9JnBG;C~+2Km3*9dpDP^aHvfk0KfdF$Uq3#5N!{Ad9=ZPcx*d}a zJ+}6~Q6Jv_=|z92A78VQCLH}tkrV2~zVrCJ?*~-h?7;~LfB*=900@8p2!H?xfB*=9 z00@8p2!H?xfB*=900@8p2!H?xfB*=900@8p2!H?xfB*=900@8p2!H?xfB*=900@8p p2!H?xfB*=900@8p2!H?xfB*=900@8p2!H?xfB*=9z;~Iz{{t!%^@;!h diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json deleted file mode 100644 index 60f43c90c14..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "ABIRoot": { - "kind": "Root", - "name": "FooKit", - "printedName": "FooKit", - "children": [ - { - "kind": "Function", - "name": "foo", - "printedName": "foo()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:6FooKit3fooyyF", - "mangledName": "$s6FooKit3fooyyF", - "moduleName": "FooKit", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - } - ], - "json_format_version": 8 - }, - "ConstValues": [] -} \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface deleted file mode 100644 index c51762a0a1b..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface +++ /dev/null @@ -1,9 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) -// swift-module-flags: -target arm64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit -@_exported import FooKit -import Swift -import _Concurrency -import _StringProcessing -import _SwiftConcurrencyShims -public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface deleted file mode 100644 index c51762a0a1b..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface +++ /dev/null @@ -1,9 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) -// swift-module-flags: -target arm64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit -@_exported import FooKit -import Swift -import _Concurrency -import _StringProcessing -import _SwiftConcurrencyShims -public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json deleted file mode 100644 index 60f43c90c14..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "ABIRoot": { - "kind": "Root", - "name": "FooKit", - "printedName": "FooKit", - "children": [ - { - "kind": "Function", - "name": "foo", - "printedName": "foo()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:6FooKit3fooyyF", - "mangledName": "$s6FooKit3fooyyF", - "moduleName": "FooKit", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - } - ], - "json_format_version": 8 - }, - "ConstValues": [] -} \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface deleted file mode 100644 index 6f4238a2549..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface +++ /dev/null @@ -1,9 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) -// swift-module-flags: -target x86_64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit -@_exported import FooKit -import Swift -import _Concurrency -import _StringProcessing -import _SwiftConcurrencyShims -public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface deleted file mode 100644 index 6f4238a2549..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface +++ /dev/null @@ -1,9 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) -// swift-module-flags: -target x86_64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit -@_exported import FooKit -import Swift -import _Concurrency -import _StringProcessing -import _SwiftConcurrencyShims -public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/module.modulemap b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/module.modulemap deleted file mode 100644 index 33f45d3d07c..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Modules/module.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module FooKit { - umbrella header "FooKit.h" - export * - - module * { export * } -} diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Resources/Info.plist b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Resources/Info.plist deleted file mode 100644 index 0f1101c9fcb..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Resources/Info.plist +++ /dev/null @@ -1,46 +0,0 @@ - - - - - BuildMachineOSBuild - 23G93 - CFBundleDevelopmentRegion - en - CFBundleExecutable - FooKit - CFBundleIdentifier - org.swift.swiftpm.FooKit - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - FooKit - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0 - CFBundleSupportedPlatforms - - MacOSX - - CFBundleVersion - 1 - DTCompiler - com.apple.compilers.llvm.clang.1_0 - DTPlatformBuild - 24A336 - DTPlatformName - macosx - DTPlatformVersion - 15.0 - DTSDKBuild - 24A336 - DTSDKName - macosx15.0 - DTXcode - 1600 - DTXcodeBuild - 16A242d - LSMinimumSystemVersion - 15.0 - - diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/FooKit b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/FooKit deleted file mode 100755 index 0fad02eff48fe16ad64f8c16426ed0481ee40b88..0000000000000000000000000000000000000000 GIT binary patch literal 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B*=900@8p2!H?xfB*=900@8p2!H?xfB*=900@8p p2!H?xfB*=900@8p2!H?xfB*=900@8p2!H?xfB*=9z;~Iz{{t!%^@;!h diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Headers/FooKit.h b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Headers/FooKit.h deleted file mode 100644 index 27365056b11..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Headers/FooKit.h +++ /dev/null @@ -1,7 +0,0 @@ -#import - -//! Project version number for FooKit. -FOUNDATION_EXPORT double FooKitVersionNumber; - -//! Project version string for FooKit. -FOUNDATION_EXPORT const unsigned char FooKitVersionString[]; diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json deleted file mode 100644 index 60f43c90c14..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "ABIRoot": { - "kind": "Root", - "name": "FooKit", - "printedName": "FooKit", - "children": [ - { - "kind": "Function", - "name": "foo", - "printedName": "foo()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:6FooKit3fooyyF", - "mangledName": "$s6FooKit3fooyyF", - "moduleName": "FooKit", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - } - ], - "json_format_version": 8 - }, - "ConstValues": [] -} \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface deleted file mode 100644 index c51762a0a1b..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface +++ /dev/null @@ -1,9 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) -// swift-module-flags: -target arm64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit -@_exported import FooKit -import Swift -import _Concurrency -import _StringProcessing -import _SwiftConcurrencyShims -public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface deleted file mode 100644 index c51762a0a1b..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface +++ /dev/null @@ -1,9 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) -// swift-module-flags: -target arm64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit -@_exported import FooKit -import Swift -import _Concurrency -import _StringProcessing -import _SwiftConcurrencyShims -public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json deleted file mode 100644 index 60f43c90c14..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "ABIRoot": { - "kind": "Root", - "name": "FooKit", - "printedName": "FooKit", - "children": [ - { - "kind": "Function", - "name": "foo", - "printedName": "foo()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:6FooKit3fooyyF", - "mangledName": "$s6FooKit3fooyyF", - "moduleName": "FooKit", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - } - ], - "json_format_version": 8 - }, - "ConstValues": [] -} \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface deleted file mode 100644 index 6f4238a2549..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface +++ /dev/null @@ -1,9 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) -// swift-module-flags: -target x86_64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit -@_exported import FooKit -import Swift -import _Concurrency -import _StringProcessing -import _SwiftConcurrencyShims -public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface deleted file mode 100644 index 6f4238a2549..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface +++ /dev/null @@ -1,9 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) -// swift-module-flags: -target x86_64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit -@_exported import FooKit -import Swift -import _Concurrency -import _StringProcessing -import _SwiftConcurrencyShims -public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/module.modulemap b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/module.modulemap deleted file mode 100644 index 33f45d3d07c..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Modules/module.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module FooKit { - umbrella header "FooKit.h" - export * - - module * { export * } -} diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Resources/Info.plist b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Resources/Info.plist deleted file mode 100644 index 0f1101c9fcb..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/A/Resources/Info.plist +++ /dev/null @@ -1,46 +0,0 @@ - - - - - BuildMachineOSBuild - 23G93 - CFBundleDevelopmentRegion - en - CFBundleExecutable - FooKit - CFBundleIdentifier - org.swift.swiftpm.FooKit - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - FooKit - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0 - CFBundleSupportedPlatforms - - MacOSX - - CFBundleVersion - 1 - DTCompiler - com.apple.compilers.llvm.clang.1_0 - DTPlatformBuild - 24A336 - DTPlatformName - macosx - DTPlatformVersion - 15.0 - DTSDKBuild - 24A336 - DTSDKName - macosx15.0 - DTXcode - 1600 - DTXcodeBuild - 16A242d - LSMinimumSystemVersion - 15.0 - - diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/FooKit b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/FooKit deleted file mode 100755 index 0fad02eff48fe16ad64f8c16426ed0481ee40b88..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 135824 zcmeI53vg6bn#WHk0Rr-f;3JN&t^ypeAPEl@T!l_Lj}DI{lduq1rY_ydP3J;CGWXt= zw20GFgHyaLGsw6&jw`d2Gw7@ZrB30htN0ik#}}aMs#_wiY%RK=tTTf=#O(Lob8foR zkfte}vaI@_s&mi%pYwg+J@;4J}Q3FMTe18H=If# z=tOu%_t0@9OC%5g0T2KI5C8!X009sH0T2KI5C8!X009sH0T2KI5C8!X009sH0T2KI z5C8!X009sH0T2KI5C8!X009sH0T2KI5C8!X009sH0T2KI5C8!X009sH0T2KI5CDO1 zmcSb)4u3@-{(I=de=(TySjrW{gt$YL6!DcVq5KYg|F3BaYFZa?O;##7vmQj%Ze|Nj zv-NH}ZJQl0rT((OE@i^n>457}BvS4vmzrkTiICM-l^w5klx!+h7OeTt7`Ule#p8SC zq-kyOn3e8ecDyAj-c)HWSoiCns&@jKyL3?+~23};-cD;HF1{>FwDIlAt64p8zuaWk7} zS~#Aj#`?_hD%?Jh6Z^Y~`Db!GeH{A7t5E&wRsmRN#&hGkrKZJ0OWQOf8Vu`0>Ko?P zRM*SVq=#8uBc)2EyM7=w_s8uM*NmXdarn8B_0qy;b_MOu^4fTOu3?vTn8B#NJZ>&4 zU#OdwK~GM3rD`KTPSb@*IVk9Qr4(YC(xp>`Xrgvz%-855eHE3*$Y2vK80XPBw{se; zGTUCD&Z#(K+D-oMvy^FYDG9z#&E}b}HQzYv`3(mjx!~@5tr~ugy_DrW^20OAId{fs z$jwDpQ;pMqDmhV%)Dl@beed<`qpnW!l(!@;TaT8{GeTz2OqSQWWGv#5h|wSuoip+B zXS7pX{zEG>GU5wyfRsm+CoHo(VuU#JOfIV|YfsWSH9F~ZzdEAW-%ob2tSZx!{d|;} z4fB;L!_Qg1_^Qr{KW^%o?hX%ko;d#P-4r6He+G~A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~Q6Jv_=|z92A78VQCLH}tkrV2~zVrCJ?*~-h?7;~LfB*=900@8p2!H?xfB*=9 z00@8p2!H?xfB*=900@8p2!H?xfB*=900@8p2!H?xfB*=900@8p2!H?xfB*=900@8p p2!H?xfB*=900@8p2!H?xfB*=900@8p2!H?xfB*=9z;~Iz{{t!%^@;!h diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Headers/FooKit.h b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Headers/FooKit.h deleted file mode 100644 index 27365056b11..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Headers/FooKit.h +++ /dev/null @@ -1,7 +0,0 @@ -#import - -//! Project version number for FooKit. -FOUNDATION_EXPORT double FooKitVersionNumber; - -//! Project version string for FooKit. -FOUNDATION_EXPORT const unsigned char FooKitVersionString[]; diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json deleted file mode 100644 index 60f43c90c14..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.abi.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "ABIRoot": { - "kind": "Root", - "name": "FooKit", - "printedName": "FooKit", - "children": [ - { - "kind": "Function", - "name": "foo", - "printedName": "foo()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:6FooKit3fooyyF", - "mangledName": "$s6FooKit3fooyyF", - "moduleName": "FooKit", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - } - ], - "json_format_version": 8 - }, - "ConstValues": [] -} \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface deleted file mode 100644 index c51762a0a1b..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.private.swiftinterface +++ /dev/null @@ -1,9 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) -// swift-module-flags: -target arm64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit -@_exported import FooKit -import Swift -import _Concurrency -import _StringProcessing -import _SwiftConcurrencyShims -public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface deleted file mode 100644 index c51762a0a1b..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/arm64-apple-macos.swiftinterface +++ /dev/null @@ -1,9 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) -// swift-module-flags: -target arm64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit -@_exported import FooKit -import Swift -import _Concurrency -import _StringProcessing -import _SwiftConcurrencyShims -public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json deleted file mode 100644 index 60f43c90c14..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.abi.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "ABIRoot": { - "kind": "Root", - "name": "FooKit", - "printedName": "FooKit", - "children": [ - { - "kind": "Function", - "name": "foo", - "printedName": "foo()", - "children": [ - { - "kind": "TypeNominal", - "name": "Void", - "printedName": "()" - } - ], - "declKind": "Func", - "usr": "s:6FooKit3fooyyF", - "mangledName": "$s6FooKit3fooyyF", - "moduleName": "FooKit", - "declAttributes": [ - "AccessControl", - "RawDocComment" - ], - "funcSelfKind": "NonMutating" - } - ], - "json_format_version": 8 - }, - "ConstValues": [] -} \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface deleted file mode 100644 index 6f4238a2549..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.private.swiftinterface +++ /dev/null @@ -1,9 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) -// swift-module-flags: -target x86_64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit -@_exported import FooKit -import Swift -import _Concurrency -import _StringProcessing -import _SwiftConcurrencyShims -public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface deleted file mode 100644 index 6f4238a2549..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/FooKit.swiftmodule/x86_64-apple-macos.swiftinterface +++ /dev/null @@ -1,9 +0,0 @@ -// swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.9.10 clang-1600.0.26.2) -// swift-module-flags: -target x86_64-apple-macos15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name FooKit -@_exported import FooKit -import Swift -import _Concurrency -import _StringProcessing -import _SwiftConcurrencyShims -public func foo() diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/module.modulemap b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/module.modulemap deleted file mode 100644 index 33f45d3d07c..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Modules/module.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module FooKit { - umbrella header "FooKit.h" - export * - - module * { export * } -} diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Resources/Info.plist b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Resources/Info.plist deleted file mode 100644 index 0f1101c9fcb..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Versions/Current/Resources/Info.plist +++ /dev/null @@ -1,46 +0,0 @@ - - - - - BuildMachineOSBuild - 23G93 - CFBundleDevelopmentRegion - en - CFBundleExecutable - FooKit - CFBundleIdentifier - org.swift.swiftpm.FooKit - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - FooKit - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0 - CFBundleSupportedPlatforms - - MacOSX - - CFBundleVersion - 1 - DTCompiler - com.apple.compilers.llvm.clang.1_0 - DTPlatformBuild - 24A336 - DTPlatformName - macosx - DTPlatformVersion - 15.0 - DTSDKBuild - 24A336 - DTSDKName - macosx15.0 - DTXcode - 1600 - DTXcodeBuild - 16A242d - LSMinimumSystemVersion - 15.0 - - diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj new file mode 100644 index 00000000000..8ed36186bc5 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj @@ -0,0 +1,369 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 77; + objects = { + +/* Begin PBXFileReference section */ + 2769FF972CAA4C12005A788D /* FooKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = FooKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */ + 2769FF9C2CAA4C12005A788D /* Exceptions for "FooKit" folder in "FooKit" target */ = { + isa = PBXFileSystemSynchronizedBuildFileExceptionSet; + publicHeaders = ( + FooKit.h, + ); + target = 2769FF962CAA4C12005A788D /* FooKit */; + }; +/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */ + +/* Begin PBXFileSystemSynchronizedRootGroup section */ + 2769FF992CAA4C12005A788D /* FooKit */ = { + isa = PBXFileSystemSynchronizedRootGroup; + exceptions = ( + 2769FF9C2CAA4C12005A788D /* Exceptions for "FooKit" folder in "FooKit" target */, + ); + path = FooKit; + sourceTree = ""; + }; +/* End PBXFileSystemSynchronizedRootGroup section */ + +/* Begin PBXFrameworksBuildPhase section */ + 2769FF942CAA4C12005A788D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 2769FF8D2CAA4C12005A788D = { + isa = PBXGroup; + children = ( + 2769FF992CAA4C12005A788D /* FooKit */, + 2769FF982CAA4C12005A788D /* Products */, + ); + sourceTree = ""; + }; + 2769FF982CAA4C12005A788D /* Products */ = { + isa = PBXGroup; + children = ( + 2769FF972CAA4C12005A788D /* FooKit.framework */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 2769FF922CAA4C12005A788D /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 2769FF962CAA4C12005A788D /* FooKit */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2769FF9D2CAA4C12005A788D /* Build configuration list for PBXNativeTarget "FooKit" */; + buildPhases = ( + 2769FF922CAA4C12005A788D /* Headers */, + 2769FF932CAA4C12005A788D /* Sources */, + 2769FF942CAA4C12005A788D /* Frameworks */, + 2769FF952CAA4C12005A788D /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + fileSystemSynchronizedGroups = ( + 2769FF992CAA4C12005A788D /* FooKit */, + ); + name = FooKit; + packageProductDependencies = ( + ); + productName = FooKit; + productReference = 2769FF972CAA4C12005A788D /* FooKit.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 2769FF8E2CAA4C12005A788D /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastUpgradeCheck = 1600; + TargetAttributes = { + 2769FF962CAA4C12005A788D = { + CreatedOnToolsVersion = 16.0; + LastSwiftMigration = 1600; + }; + }; + }; + buildConfigurationList = 2769FF912CAA4C12005A788D /* Build configuration list for PBXProject "FooKit" */; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 2769FF8D2CAA4C12005A788D; + minimizedProjectReferenceProxies = 1; + preferredProjectObjectVersion = 77; + productRefGroup = 2769FF982CAA4C12005A788D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 2769FF962CAA4C12005A788D /* FooKit */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 2769FF952CAA4C12005A788D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 2769FF932CAA4C12005A788D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 2769FF9E2CAA4C12005A788D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = ""; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + "@loader_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; + MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; + PRODUCT_BUNDLE_IDENTIFIER = org.swift.swiftpm.FooKit; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_INSTALL_OBJC_HEADER = NO; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 2769FF9F2CAA4C12005A788D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = ""; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + "@loader_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; + MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; + PRODUCT_BUNDLE_IDENTIFIER = org.swift.swiftpm.FooKit; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_INSTALL_OBJC_HEADER = NO; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + 2769FFA02CAA4C12005A788D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MACOSX_DEPLOYMENT_TARGET = 15.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 2769FFA12CAA4C12005A788D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MACOSX_DEPLOYMENT_TARGET = 15.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 2769FF912CAA4C12005A788D /* Build configuration list for PBXProject "FooKit" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2769FFA02CAA4C12005A788D /* Debug */, + 2769FFA12CAA4C12005A788D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2769FF9D2CAA4C12005A788D /* Build configuration list for PBXNativeTarget "FooKit" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2769FF9E2CAA4C12005A788D /* Debug */, + 2769FF9F2CAA4C12005A788D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 2769FF8E2CAA4C12005A788D /* Project object */; +} diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/FooKit/Foo.swift b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/FooKit/Foo.swift new file mode 100644 index 00000000000..7dc1d30bd24 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/FooKit/Foo.swift @@ -0,0 +1,4 @@ +/// print "foo" +public func foo() { + print("foo") +} diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Headers/FooKit.h b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/FooKit/FooKit.h similarity index 100% rename from Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit.xcframework/macos-arm64_x86_64/FooKit.framework/Headers/FooKit.h rename to Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/FooKit/FooKit.h diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/Scripts/archive_xcframework.sh b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/Scripts/archive_xcframework.sh new file mode 100755 index 00000000000..a537d14f28b --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/Scripts/archive_xcframework.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +# A `realpath` alternative using the default C implementation. +filepath() { + [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" +} + +ROOT="$(dirname $(dirname $(filepath $0)))" + +cd $ROOT + +rm -rf archives + +xcodebuild archive \ +-project FooKit.xcodeproj \ +-scheme FooKit \ +-configuration Release \ +-destination "generic/platform=macOS" \ +-archivePath "archives/macOS" \ +SKIP_INSTALL=NO \ +BUILD_LIBRARY_FOR_DISTRIBUTION=YES + +xcodebuild \ +-create-xcframework \ +-archive archives/macOS.xcarchive -framework FooKit.framework \ +-output ../FooKit.xcframework diff --git a/Tests/BuildTests/PluginsBuildPlanTests.swift b/Tests/BuildTests/PluginsBuildPlanTests.swift index 2493e0e7216..22553c2874b 100644 --- a/Tests/BuildTests/PluginsBuildPlanTests.swift +++ b/Tests/BuildTests/PluginsBuildPlanTests.swift @@ -80,9 +80,14 @@ final class PluginsBuildPlanTests: XCTestCase { } } - #if canImport(Darwin) // xcframework support is only supported on Darwin platform + #if canImport(Darwin) + // binaryTarget/xcframework is only supported on Darwin platform func testDocCPluginForBinaryDependency() async throws { try await fixture(name: "Miscellaneous/Plugins/DocCForBinaryDependency") { fixturePath in + let result = try await AsyncProcess.popen(arguments: [ + fixturePath.appending(RelativePath("FooKit/Scripts/archive_xcframework.sh")).pathString, + ]) + XCTAssertEqual(result.exitStatus, .terminated(code: 0)) // Before we add -F support for xcframework, this call will throw since the command will abort with a non-zero exit code let _ = try await executeSwiftPackage(fixturePath, extraArgs: ["generate-symbol-graph"]) } From f2790fb3ff32c483b05e8285d7a3db631bc8d66a Mon Sep 17 00:00:00 2001 From: Kyle Date: Tue, 1 Oct 2024 00:00:24 +0800 Subject: [PATCH 09/21] Update license information and documentation --- .../FooKit/Scripts/archive_xcframework.sh | 11 +++++++++++ .../GetSymbolGraphPlugin.swift | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/Scripts/archive_xcframework.sh b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/Scripts/archive_xcframework.sh index a537d14f28b..e84d8ea95e2 100755 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/Scripts/archive_xcframework.sh +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/Scripts/archive_xcframework.sh @@ -1,4 +1,15 @@ #!/bin/bash +##===----------------------------------------------------------------------===## +## +## This source file is part of the Swift open source project +## +## Copyright (c) 2024 Apple Inc. and the Swift project authors +## Licensed under Apache License v2.0 with Runtime Library Exception +## +## See http://swift.org/LICENSE.txt for license information +## See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +## +##===----------------------------------------------------------------------===## # A `realpath` alternative using the default C implementation. filepath() { diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Plugins/GenerateSymbolGraphPlugin/GetSymbolGraphPlugin.swift b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Plugins/GenerateSymbolGraphPlugin/GetSymbolGraphPlugin.swift index da90c3a805b..15706f5b9c2 100644 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Plugins/GenerateSymbolGraphPlugin/GetSymbolGraphPlugin.swift +++ b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Plugins/GenerateSymbolGraphPlugin/GetSymbolGraphPlugin.swift @@ -1,6 +1,6 @@ // This source file is part of the Swift.org open source project // -// Copyright (c) 2022-2024 Apple Inc. and the Swift project authors +// Copyright (c) 2024 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information @@ -9,8 +9,8 @@ import Foundation import PackagePlugin -/// Creates a Swift-DocC documentation archive from a Swift Package. -@main struct GenerateSymbolGraphPlugin: CommandPlugin { +@main +struct GenerateSymbolGraphPlugin: CommandPlugin { func performCommand(context: PluginContext, arguments: [String]) throws { for target in context.package.targets where target is SwiftSourceModuleTarget { let _ = try packageManager.getSymbolGraph(for: target, options: .init()) From 2c56b32093d456037bf77151f19175fb2421b294 Mon Sep 17 00:00:00 2001 From: Kyle Date: Tue, 1 Oct 2024 00:10:35 +0800 Subject: [PATCH 10/21] Update folder name --- .../FooKit/FooKit.xcodeproj/project.pbxproj | 369 ------------------ .../FooKit/FooKit/Foo.swift | 0 .../FooKit/FooKit/FooKit.h | 0 .../FooKit/Scripts/archive_xcframework.sh | 0 .../Package.swift | 0 .../GetSymbolGraphPlugin.swift | 0 .../Sources/DemoKit/DemoKit.swift | 0 Tests/BuildTests/PluginsBuildPlanTests.swift | 2 +- 8 files changed, 1 insertion(+), 370 deletions(-) delete mode 100644 Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj rename Fixtures/Miscellaneous/Plugins/{DocCForBinaryDependency => SymbolGraphForBinaryDependency}/FooKit/FooKit/Foo.swift (100%) rename Fixtures/Miscellaneous/Plugins/{DocCForBinaryDependency => SymbolGraphForBinaryDependency}/FooKit/FooKit/FooKit.h (100%) rename Fixtures/Miscellaneous/Plugins/{DocCForBinaryDependency => SymbolGraphForBinaryDependency}/FooKit/Scripts/archive_xcframework.sh (100%) rename Fixtures/Miscellaneous/Plugins/{DocCForBinaryDependency => SymbolGraphForBinaryDependency}/Package.swift (100%) rename Fixtures/Miscellaneous/Plugins/{DocCForBinaryDependency => SymbolGraphForBinaryDependency}/Plugins/GenerateSymbolGraphPlugin/GetSymbolGraphPlugin.swift (100%) rename Fixtures/Miscellaneous/Plugins/{DocCForBinaryDependency => SymbolGraphForBinaryDependency}/Sources/DemoKit/DemoKit.swift (100%) diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj b/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj deleted file mode 100644 index 8ed36186bc5..00000000000 --- a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj +++ /dev/null @@ -1,369 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 77; - objects = { - -/* Begin PBXFileReference section */ - 2769FF972CAA4C12005A788D /* FooKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = FooKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; -/* End PBXFileReference section */ - -/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */ - 2769FF9C2CAA4C12005A788D /* Exceptions for "FooKit" folder in "FooKit" target */ = { - isa = PBXFileSystemSynchronizedBuildFileExceptionSet; - publicHeaders = ( - FooKit.h, - ); - target = 2769FF962CAA4C12005A788D /* FooKit */; - }; -/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */ - -/* Begin PBXFileSystemSynchronizedRootGroup section */ - 2769FF992CAA4C12005A788D /* FooKit */ = { - isa = PBXFileSystemSynchronizedRootGroup; - exceptions = ( - 2769FF9C2CAA4C12005A788D /* Exceptions for "FooKit" folder in "FooKit" target */, - ); - path = FooKit; - sourceTree = ""; - }; -/* End PBXFileSystemSynchronizedRootGroup section */ - -/* Begin PBXFrameworksBuildPhase section */ - 2769FF942CAA4C12005A788D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 2769FF8D2CAA4C12005A788D = { - isa = PBXGroup; - children = ( - 2769FF992CAA4C12005A788D /* FooKit */, - 2769FF982CAA4C12005A788D /* Products */, - ); - sourceTree = ""; - }; - 2769FF982CAA4C12005A788D /* Products */ = { - isa = PBXGroup; - children = ( - 2769FF972CAA4C12005A788D /* FooKit.framework */, - ); - name = Products; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 2769FF922CAA4C12005A788D /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 2769FF962CAA4C12005A788D /* FooKit */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2769FF9D2CAA4C12005A788D /* Build configuration list for PBXNativeTarget "FooKit" */; - buildPhases = ( - 2769FF922CAA4C12005A788D /* Headers */, - 2769FF932CAA4C12005A788D /* Sources */, - 2769FF942CAA4C12005A788D /* Frameworks */, - 2769FF952CAA4C12005A788D /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - fileSystemSynchronizedGroups = ( - 2769FF992CAA4C12005A788D /* FooKit */, - ); - name = FooKit; - packageProductDependencies = ( - ); - productName = FooKit; - productReference = 2769FF972CAA4C12005A788D /* FooKit.framework */; - productType = "com.apple.product-type.framework"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 2769FF8E2CAA4C12005A788D /* Project object */ = { - isa = PBXProject; - attributes = { - BuildIndependentTargetsInParallel = 1; - LastUpgradeCheck = 1600; - TargetAttributes = { - 2769FF962CAA4C12005A788D = { - CreatedOnToolsVersion = 16.0; - LastSwiftMigration = 1600; - }; - }; - }; - buildConfigurationList = 2769FF912CAA4C12005A788D /* Build configuration list for PBXProject "FooKit" */; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 2769FF8D2CAA4C12005A788D; - minimizedProjectReferenceProxies = 1; - preferredProjectObjectVersion = 77; - productRefGroup = 2769FF982CAA4C12005A788D /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 2769FF962CAA4C12005A788D /* FooKit */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 2769FF952CAA4C12005A788D /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 2769FF932CAA4C12005A788D /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - 2769FF9E2CAA4C12005A788D /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUILD_LIBRARY_FOR_DISTRIBUTION = YES; - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = ""; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = YES; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_KEY_NSHumanReadableCopyright = ""; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - MARKETING_VERSION = 1.0; - MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; - MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; - PRODUCT_BUNDLE_IDENTIFIER = org.swift.swiftpm.FooKit; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_INSTALL_OBJC_HEADER = NO; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - }; - name = Debug; - }; - 2769FF9F2CAA4C12005A788D /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUILD_LIBRARY_FOR_DISTRIBUTION = YES; - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = ""; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = YES; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_KEY_NSHumanReadableCopyright = ""; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - MARKETING_VERSION = 1.0; - MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; - MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; - PRODUCT_BUNDLE_IDENTIFIER = org.swift.swiftpm.FooKit; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_INSTALL_OBJC_HEADER = NO; - SWIFT_VERSION = 5.0; - }; - name = Release; - }; - 2769FFA02CAA4C12005A788D /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - ENABLE_USER_SCRIPT_SANDBOXING = YES; - GCC_C_LANGUAGE_STANDARD = gnu17; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - LOCALIZATION_PREFERS_STRING_CATALOGS = YES; - MACOSX_DEPLOYMENT_TARGET = 15.0; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = macosx; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 2769FFA12CAA4C12005A788D /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_USER_SCRIPT_SANDBOXING = YES; - GCC_C_LANGUAGE_STANDARD = gnu17; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - LOCALIZATION_PREFERS_STRING_CATALOGS = YES; - MACOSX_DEPLOYMENT_TARGET = 15.0; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - SDKROOT = macosx; - SWIFT_COMPILATION_MODE = wholemodule; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 2769FF912CAA4C12005A788D /* Build configuration list for PBXProject "FooKit" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2769FFA02CAA4C12005A788D /* Debug */, - 2769FFA12CAA4C12005A788D /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 2769FF9D2CAA4C12005A788D /* Build configuration list for PBXNativeTarget "FooKit" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2769FF9E2CAA4C12005A788D /* Debug */, - 2769FF9F2CAA4C12005A788D /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 2769FF8E2CAA4C12005A788D /* Project object */; -} diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/FooKit/Foo.swift b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/Foo.swift similarity index 100% rename from Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/FooKit/Foo.swift rename to Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/Foo.swift diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/FooKit/FooKit.h b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/FooKit.h similarity index 100% rename from Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/FooKit/FooKit.h rename to Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/FooKit.h diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/Scripts/archive_xcframework.sh b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/Scripts/archive_xcframework.sh similarity index 100% rename from Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/FooKit/Scripts/archive_xcframework.sh rename to Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/Scripts/archive_xcframework.sh diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Package.swift b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/Package.swift similarity index 100% rename from Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Package.swift rename to Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/Package.swift diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Plugins/GenerateSymbolGraphPlugin/GetSymbolGraphPlugin.swift b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/Plugins/GenerateSymbolGraphPlugin/GetSymbolGraphPlugin.swift similarity index 100% rename from Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Plugins/GenerateSymbolGraphPlugin/GetSymbolGraphPlugin.swift rename to Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/Plugins/GenerateSymbolGraphPlugin/GetSymbolGraphPlugin.swift diff --git a/Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Sources/DemoKit/DemoKit.swift b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/Sources/DemoKit/DemoKit.swift similarity index 100% rename from Fixtures/Miscellaneous/Plugins/DocCForBinaryDependency/Sources/DemoKit/DemoKit.swift rename to Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/Sources/DemoKit/DemoKit.swift diff --git a/Tests/BuildTests/PluginsBuildPlanTests.swift b/Tests/BuildTests/PluginsBuildPlanTests.swift index 22553c2874b..86e7ac396c0 100644 --- a/Tests/BuildTests/PluginsBuildPlanTests.swift +++ b/Tests/BuildTests/PluginsBuildPlanTests.swift @@ -83,7 +83,7 @@ final class PluginsBuildPlanTests: XCTestCase { #if canImport(Darwin) // binaryTarget/xcframework is only supported on Darwin platform func testDocCPluginForBinaryDependency() async throws { - try await fixture(name: "Miscellaneous/Plugins/DocCForBinaryDependency") { fixturePath in + try await fixture(name: "Miscellaneous/Plugins/SymbolGraphForBinaryDependency") { fixturePath in let result = try await AsyncProcess.popen(arguments: [ fixturePath.appending(RelativePath("FooKit/Scripts/archive_xcframework.sh")).pathString, ]) From d3c44d0f4dc60bde29d506d6a0c02fe4a9b0c47a Mon Sep 17 00:00:00 2001 From: Kyle Date: Tue, 1 Oct 2024 00:14:32 +0800 Subject: [PATCH 11/21] Lower version requirement --- .../FooKit/FooKit.xcodeproj/project.pbxproj | 364 ++++++++++++++++++ .../Package.swift | 2 +- 2 files changed, 365 insertions(+), 1 deletion(-) create mode 100644 Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj diff --git a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj new file mode 100644 index 00000000000..3cb8ba74a9f --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj @@ -0,0 +1,364 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 70; + objects = { + +/* Begin PBXFileReference section */ + 2769FF972CAA4C12005A788D /* FooKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = FooKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */ + 2769FF9C2CAA4C12005A788D /* PBXFileSystemSynchronizedBuildFileExceptionSet */ = { + isa = PBXFileSystemSynchronizedBuildFileExceptionSet; + publicHeaders = ( + FooKit.h, + ); + target = 2769FF962CAA4C12005A788D /* FooKit */; + }; +/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */ + +/* Begin PBXFileSystemSynchronizedRootGroup section */ + 2769FF992CAA4C12005A788D /* FooKit */ = {isa = PBXFileSystemSynchronizedRootGroup; exceptions = (2769FF9C2CAA4C12005A788D /* PBXFileSystemSynchronizedBuildFileExceptionSet */, ); explicitFileTypes = {}; explicitFolders = (); path = FooKit; sourceTree = ""; }; +/* End PBXFileSystemSynchronizedRootGroup section */ + +/* Begin PBXFrameworksBuildPhase section */ + 2769FF942CAA4C12005A788D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 2769FF8D2CAA4C12005A788D = { + isa = PBXGroup; + children = ( + 2769FF992CAA4C12005A788D /* FooKit */, + 2769FF982CAA4C12005A788D /* Products */, + ); + sourceTree = ""; + }; + 2769FF982CAA4C12005A788D /* Products */ = { + isa = PBXGroup; + children = ( + 2769FF972CAA4C12005A788D /* FooKit.framework */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 2769FF922CAA4C12005A788D /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 2769FF962CAA4C12005A788D /* FooKit */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2769FF9D2CAA4C12005A788D /* Build configuration list for PBXNativeTarget "FooKit" */; + buildPhases = ( + 2769FF922CAA4C12005A788D /* Headers */, + 2769FF932CAA4C12005A788D /* Sources */, + 2769FF942CAA4C12005A788D /* Frameworks */, + 2769FF952CAA4C12005A788D /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + fileSystemSynchronizedGroups = ( + 2769FF992CAA4C12005A788D /* FooKit */, + ); + name = FooKit; + packageProductDependencies = ( + ); + productName = FooKit; + productReference = 2769FF972CAA4C12005A788D /* FooKit.framework */; + productType = "com.apple.product-type.framework"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 2769FF8E2CAA4C12005A788D /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastUpgradeCheck = 1600; + TargetAttributes = { + 2769FF962CAA4C12005A788D = { + CreatedOnToolsVersion = 16.0; + LastSwiftMigration = 1600; + }; + }; + }; + buildConfigurationList = 2769FF912CAA4C12005A788D /* Build configuration list for PBXProject "FooKit" */; + compatibilityVersion = "Xcode 12.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 2769FF8D2CAA4C12005A788D; + minimizedProjectReferenceProxies = 1; + productRefGroup = 2769FF982CAA4C12005A788D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 2769FF962CAA4C12005A788D /* FooKit */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 2769FF952CAA4C12005A788D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 2769FF932CAA4C12005A788D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 2769FF9E2CAA4C12005A788D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = ""; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + "@loader_path/Frameworks", + ); + MACOSX_DEPLOYMENT_TARGET = 12.4; + MARKETING_VERSION = 1.0; + MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; + MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; + PRODUCT_BUNDLE_IDENTIFIER = org.swift.swiftpm.FooKit; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_INSTALL_OBJC_HEADER = NO; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 2769FF9F2CAA4C12005A788D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = ""; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + "@loader_path/Frameworks", + ); + MACOSX_DEPLOYMENT_TARGET = 12.4; + MARKETING_VERSION = 1.0; + MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; + MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; + PRODUCT_BUNDLE_IDENTIFIER = org.swift.swiftpm.FooKit; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_INSTALL_OBJC_HEADER = NO; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + 2769FFA02CAA4C12005A788D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MACOSX_DEPLOYMENT_TARGET = 15.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Debug; + }; + 2769FFA12CAA4C12005A788D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 1; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MACOSX_DEPLOYMENT_TARGET = 15.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + VERSIONING_SYSTEM = "apple-generic"; + VERSION_INFO_PREFIX = ""; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 2769FF912CAA4C12005A788D /* Build configuration list for PBXProject "FooKit" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2769FFA02CAA4C12005A788D /* Debug */, + 2769FFA12CAA4C12005A788D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2769FF9D2CAA4C12005A788D /* Build configuration list for PBXNativeTarget "FooKit" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2769FF9E2CAA4C12005A788D /* Debug */, + 2769FF9F2CAA4C12005A788D /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 2769FF8E2CAA4C12005A788D /* Project object */; +} diff --git a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/Package.swift b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/Package.swift index db47b9de032..9f21589a1f5 100644 --- a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/Package.swift +++ b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version: 5.9 +// swift-tools-version: 5.8 import PackageDescription let package = Package( From c76c23fd263c10327786bf168cdcfad5c425dd2c Mon Sep 17 00:00:00 2001 From: Kyle Date: Tue, 1 Oct 2024 21:31:38 +0800 Subject: [PATCH 12/21] Update project.pbxproj file to fix older Xcode build issue --- .../FooKit/FooKit.xcodeproj/project.pbxproj | 261 ++++++++---------- .../FooKit/FooKit/{Foo.swift => FooKit.swift} | 0 .../FooKit/FooKit/Info.plist | 22 ++ 3 files changed, 139 insertions(+), 144 deletions(-) rename Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/{Foo.swift => FooKit.swift} (100%) create mode 100644 Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/Info.plist diff --git a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj index 3cb8ba74a9f..ec1aa31caaa 100644 --- a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj +++ b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj @@ -3,29 +3,23 @@ archiveVersion = 1; classes = { }; - objectVersion = 70; + objectVersion = 50; objects = { +/* Begin PBXBuildFile section */ + 63A1B3E923FB4B26001B7732 /* FooKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 63A1B3E723FB4B26001B7732 /* FooKit.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 63A1B3F023FB4B32001B7732 /* FooKit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 63A1B3EF23FB4B32001B7732 /* FooKit.swift */; }; +/* End PBXBuildFile section */ + /* Begin PBXFileReference section */ - 2769FF972CAA4C12005A788D /* FooKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = FooKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 63A1B3E423FB4B26001B7732 /* FooKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = FooKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 63A1B3E723FB4B26001B7732 /* FooKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FooKit.h; sourceTree = ""; }; + 63A1B3E823FB4B26001B7732 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 63A1B3EF23FB4B32001B7732 /* FooKit.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FooKit.swift; sourceTree = ""; }; /* End PBXFileReference section */ -/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */ - 2769FF9C2CAA4C12005A788D /* PBXFileSystemSynchronizedBuildFileExceptionSet */ = { - isa = PBXFileSystemSynchronizedBuildFileExceptionSet; - publicHeaders = ( - FooKit.h, - ); - target = 2769FF962CAA4C12005A788D /* FooKit */; - }; -/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */ - -/* Begin PBXFileSystemSynchronizedRootGroup section */ - 2769FF992CAA4C12005A788D /* FooKit */ = {isa = PBXFileSystemSynchronizedRootGroup; exceptions = (2769FF9C2CAA4C12005A788D /* PBXFileSystemSynchronizedBuildFileExceptionSet */, ); explicitFileTypes = {}; explicitFolders = (); path = FooKit; sourceTree = ""; }; -/* End PBXFileSystemSynchronizedRootGroup section */ - /* Begin PBXFrameworksBuildPhase section */ - 2769FF942CAA4C12005A788D /* Frameworks */ = { + 63A1B3E123FB4B26001B7732 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( @@ -35,94 +29,99 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 2769FF8D2CAA4C12005A788D = { + 63A1B3DA23FB4B26001B7732 = { isa = PBXGroup; children = ( - 2769FF992CAA4C12005A788D /* FooKit */, - 2769FF982CAA4C12005A788D /* Products */, + 63A1B3E623FB4B26001B7732 /* FooKit */, + 63A1B3E523FB4B26001B7732 /* Products */, ); sourceTree = ""; }; - 2769FF982CAA4C12005A788D /* Products */ = { + 63A1B3E523FB4B26001B7732 /* Products */ = { isa = PBXGroup; children = ( - 2769FF972CAA4C12005A788D /* FooKit.framework */, + 63A1B3E423FB4B26001B7732 /* FooKit.framework */, ); name = Products; sourceTree = ""; }; + 63A1B3E623FB4B26001B7732 /* FooKit */ = { + isa = PBXGroup; + children = ( + 63A1B3E723FB4B26001B7732 /* FooKit.h */, + 63A1B3E823FB4B26001B7732 /* Info.plist */, + 63A1B3EF23FB4B32001B7732 /* FooKit.swift */, + ); + path = FooKit; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ - 2769FF922CAA4C12005A788D /* Headers */ = { + 63A1B3DF23FB4B26001B7732 /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( + 63A1B3E923FB4B26001B7732 /* FooKit.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ - 2769FF962CAA4C12005A788D /* FooKit */ = { + 63A1B3E323FB4B26001B7732 /* FooKit */ = { isa = PBXNativeTarget; - buildConfigurationList = 2769FF9D2CAA4C12005A788D /* Build configuration list for PBXNativeTarget "FooKit" */; + buildConfigurationList = 63A1B3EC23FB4B26001B7732 /* Build configuration list for PBXNativeTarget "FooKit" */; buildPhases = ( - 2769FF922CAA4C12005A788D /* Headers */, - 2769FF932CAA4C12005A788D /* Sources */, - 2769FF942CAA4C12005A788D /* Frameworks */, - 2769FF952CAA4C12005A788D /* Resources */, + 63A1B3DF23FB4B26001B7732 /* Headers */, + 63A1B3E023FB4B26001B7732 /* Sources */, + 63A1B3E123FB4B26001B7732 /* Frameworks */, + 63A1B3E223FB4B26001B7732 /* Resources */, ); buildRules = ( ); dependencies = ( ); - fileSystemSynchronizedGroups = ( - 2769FF992CAA4C12005A788D /* FooKit */, - ); name = FooKit; - packageProductDependencies = ( - ); productName = FooKit; - productReference = 2769FF972CAA4C12005A788D /* FooKit.framework */; + productReference = 63A1B3E423FB4B26001B7732 /* FooKit.framework */; productType = "com.apple.product-type.framework"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ - 2769FF8E2CAA4C12005A788D /* Project object */ = { + 63A1B3DB23FB4B26001B7732 /* Project object */ = { isa = PBXProject; attributes = { - BuildIndependentTargetsInParallel = 1; - LastUpgradeCheck = 1600; + LastUpgradeCheck = 1140; + ORGANIZATIONNAME = "swiftpm-fixture"; TargetAttributes = { - 2769FF962CAA4C12005A788D = { - CreatedOnToolsVersion = 16.0; - LastSwiftMigration = 1600; + 63A1B3E323FB4B26001B7732 = { + CreatedOnToolsVersion = 11.4; + LastSwiftMigration = 1140; }; }; }; - buildConfigurationList = 2769FF912CAA4C12005A788D /* Build configuration list for PBXProject "FooKit" */; - compatibilityVersion = "Xcode 12.0"; + buildConfigurationList = 63A1B3DE23FB4B26001B7732 /* Build configuration list for PBXProject "FooKit" */; + compatibilityVersion = "Xcode 9.3"; developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( en, Base, ); - mainGroup = 2769FF8D2CAA4C12005A788D; - minimizedProjectReferenceProxies = 1; - productRefGroup = 2769FF982CAA4C12005A788D /* Products */; + mainGroup = 63A1B3DA23FB4B26001B7732; + productRefGroup = 63A1B3E523FB4B26001B7732 /* Products */; projectDirPath = ""; projectRoot = ""; targets = ( - 2769FF962CAA4C12005A788D /* FooKit */, + 63A1B3E323FB4B26001B7732 /* FooKit */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ - 2769FF952CAA4C12005A788D /* Resources */ = { + 63A1B3E223FB4B26001B7732 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( @@ -132,95 +131,25 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ - 2769FF932CAA4C12005A788D /* Sources */ = { + 63A1B3E023FB4B26001B7732 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + 63A1B3F023FB4B32001B7732 /* FooKit.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin XCBuildConfiguration section */ - 2769FF9E2CAA4C12005A788D /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUILD_LIBRARY_FOR_DISTRIBUTION = YES; - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = ""; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = YES; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_KEY_NSHumanReadableCopyright = ""; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - MACOSX_DEPLOYMENT_TARGET = 12.4; - MARKETING_VERSION = 1.0; - MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; - MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; - PRODUCT_BUNDLE_IDENTIFIER = org.swift.swiftpm.FooKit; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_INSTALL_OBJC_HEADER = NO; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - }; - name = Debug; - }; - 2769FF9F2CAA4C12005A788D /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUILD_LIBRARY_FOR_DISTRIBUTION = YES; - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = ""; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = YES; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_KEY_NSHumanReadableCopyright = ""; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - MACOSX_DEPLOYMENT_TARGET = 12.4; - MARKETING_VERSION = 1.0; - MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; - MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; - PRODUCT_BUNDLE_IDENTIFIER = org.swift.swiftpm.FooKit; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - SKIP_INSTALL = YES; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_INSTALL_OBJC_HEADER = NO; - SWIFT_VERSION = 5.0; - }; - name = Release; - }; - 2769FFA02CAA4C12005A788D /* Debug */ = { + 63A1B3EA23FB4B26001B7732 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_ENABLE_OBJC_WEAK = YES; @@ -239,7 +168,6 @@ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; @@ -251,8 +179,7 @@ DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; - ENABLE_USER_SCRIPT_SANDBOXING = YES; - GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_C_LANGUAGE_STANDARD = gnu11; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; @@ -266,27 +193,26 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - LOCALIZATION_PREFERS_STRING_CATALOGS = YES; - MACOSX_DEPLOYMENT_TARGET = 15.0; + MACOSX_DEPLOYMENT_TARGET = 10.15; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; name = Debug; }; - 2769FFA12CAA4C12005A788D /* Release */ = { + 63A1B3EB23FB4B26001B7732 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_ENABLE_OBJC_WEAK = YES; @@ -305,7 +231,6 @@ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; @@ -317,8 +242,7 @@ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_USER_SCRIPT_SANDBOXING = YES; - GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_C_LANGUAGE_STANDARD = gnu11; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; @@ -326,39 +250,88 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - LOCALIZATION_PREFERS_STRING_CATALOGS = YES; - MACOSX_DEPLOYMENT_TARGET = 15.0; + MACOSX_DEPLOYMENT_TARGET = 10.15; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; name = Release; }; + 63A1B3ED23FB4B26001B7732 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = FooKit/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = org.swift.swiftpm.fixture.FooKit; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 63A1B3EE23FB4B26001B7732 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUILD_LIBRARY_FOR_DISTRIBUTION = YES; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + DEFINES_MODULE = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 1; + DYLIB_INSTALL_NAME_BASE = "@rpath"; + INFOPLIST_FILE = FooKit/Info.plist; + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = org.swift.swiftpm.fixture.FooKit; + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 2769FF912CAA4C12005A788D /* Build configuration list for PBXProject "FooKit" */ = { + 63A1B3DE23FB4B26001B7732 /* Build configuration list for PBXProject "FooKit" */ = { isa = XCConfigurationList; buildConfigurations = ( - 2769FFA02CAA4C12005A788D /* Debug */, - 2769FFA12CAA4C12005A788D /* Release */, + 63A1B3EA23FB4B26001B7732 /* Debug */, + 63A1B3EB23FB4B26001B7732 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 2769FF9D2CAA4C12005A788D /* Build configuration list for PBXNativeTarget "FooKit" */ = { + 63A1B3EC23FB4B26001B7732 /* Build configuration list for PBXNativeTarget "FooKit" */ = { isa = XCConfigurationList; buildConfigurations = ( - 2769FF9E2CAA4C12005A788D /* Debug */, - 2769FF9F2CAA4C12005A788D /* Release */, + 63A1B3ED23FB4B26001B7732 /* Debug */, + 63A1B3EE23FB4B26001B7732 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; - rootObject = 2769FF8E2CAA4C12005A788D /* Project object */; + rootObject = 63A1B3DB23FB4B26001B7732 /* Project object */; } diff --git a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/Foo.swift b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/FooKit.swift similarity index 100% rename from Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/Foo.swift rename to Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/FooKit.swift diff --git a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/Info.plist b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/Info.plist new file mode 100644 index 00000000000..9bcb244429e --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0 + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + + From c657d66122aff484737ca5ae279cec27706fe304 Mon Sep 17 00:00:00 2001 From: Kyle Date: Tue, 8 Oct 2024 11:38:21 +0800 Subject: [PATCH 13/21] Update PluginsBuildPlanTests skip logic --- Tests/BuildTests/PluginsBuildPlanTests.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Tests/BuildTests/PluginsBuildPlanTests.swift b/Tests/BuildTests/PluginsBuildPlanTests.swift index 86e7ac396c0..72f77be344d 100644 --- a/Tests/BuildTests/PluginsBuildPlanTests.swift +++ b/Tests/BuildTests/PluginsBuildPlanTests.swift @@ -80,9 +80,12 @@ final class PluginsBuildPlanTests: XCTestCase { } } - #if canImport(Darwin) - // binaryTarget/xcframework is only supported on Darwin platform func testDocCPluginForBinaryDependency() async throws { + #if !os(macOS) + // binaryTarget/xcframework is only supported on Darwin platform + try XCTSkip("Test requires macOS") + #endif + try await fixture(name: "Miscellaneous/Plugins/SymbolGraphForBinaryDependency") { fixturePath in let result = try await AsyncProcess.popen(arguments: [ fixturePath.appending(RelativePath("FooKit/Scripts/archive_xcframework.sh")).pathString, @@ -92,5 +95,4 @@ final class PluginsBuildPlanTests: XCTestCase { let _ = try await executeSwiftPackage(fixturePath, extraArgs: ["generate-symbol-graph"]) } } - #endif } From ca4387dc1014b9b303861a26ced162edb479e099 Mon Sep 17 00:00:00 2001 From: Kyle Date: Tue, 8 Oct 2024 11:40:00 +0800 Subject: [PATCH 14/21] Update project file (Created with Xcode 15.1.0) --- .../FooKit/FooKit.xcodeproj/project.pbxproj | 153 ++++++++++-------- .../FooKit/FooKit/{FooKit.swift => Foo.swift} | 0 .../FooKit/FooKit/Info.plist | 22 --- 3 files changed, 88 insertions(+), 87 deletions(-) rename Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/{FooKit.swift => Foo.swift} (100%) delete mode 100644 Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/Info.plist diff --git a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj index ec1aa31caaa..39cdd7a9d31 100644 --- a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj +++ b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj @@ -3,23 +3,22 @@ archiveVersion = 1; classes = { }; - objectVersion = 50; + objectVersion = 56; objects = { /* Begin PBXBuildFile section */ - 63A1B3E923FB4B26001B7732 /* FooKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 63A1B3E723FB4B26001B7732 /* FooKit.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 63A1B3F023FB4B32001B7732 /* FooKit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 63A1B3EF23FB4B32001B7732 /* FooKit.swift */; }; + 270547332CB4DF3F00E2FCAD /* FooKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 270547322CB4DF3F00E2FCAD /* FooKit.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 2705473A2CB4DF8B00E2FCAD /* Foo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 270547392CB4DF8B00E2FCAD /* Foo.swift */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ - 63A1B3E423FB4B26001B7732 /* FooKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = FooKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 63A1B3E723FB4B26001B7732 /* FooKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FooKit.h; sourceTree = ""; }; - 63A1B3E823FB4B26001B7732 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 63A1B3EF23FB4B32001B7732 /* FooKit.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FooKit.swift; sourceTree = ""; }; + 2705472F2CB4DF3F00E2FCAD /* FooKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = FooKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 270547322CB4DF3F00E2FCAD /* FooKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FooKit.h; sourceTree = ""; }; + 270547392CB4DF8B00E2FCAD /* Foo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Foo.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ - 63A1B3E123FB4B26001B7732 /* Frameworks */ = { + 2705472C2CB4DF3F00E2FCAD /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( @@ -29,28 +28,27 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 63A1B3DA23FB4B26001B7732 = { + 270547252CB4DF3F00E2FCAD = { isa = PBXGroup; children = ( - 63A1B3E623FB4B26001B7732 /* FooKit */, - 63A1B3E523FB4B26001B7732 /* Products */, + 270547312CB4DF3F00E2FCAD /* FooKit */, + 270547302CB4DF3F00E2FCAD /* Products */, ); sourceTree = ""; }; - 63A1B3E523FB4B26001B7732 /* Products */ = { + 270547302CB4DF3F00E2FCAD /* Products */ = { isa = PBXGroup; children = ( - 63A1B3E423FB4B26001B7732 /* FooKit.framework */, + 2705472F2CB4DF3F00E2FCAD /* FooKit.framework */, ); name = Products; sourceTree = ""; }; - 63A1B3E623FB4B26001B7732 /* FooKit */ = { + 270547312CB4DF3F00E2FCAD /* FooKit */ = { isa = PBXGroup; children = ( - 63A1B3E723FB4B26001B7732 /* FooKit.h */, - 63A1B3E823FB4B26001B7732 /* Info.plist */, - 63A1B3EF23FB4B32001B7732 /* FooKit.swift */, + 270547322CB4DF3F00E2FCAD /* FooKit.h */, + 270547392CB4DF8B00E2FCAD /* Foo.swift */, ); path = FooKit; sourceTree = ""; @@ -58,25 +56,25 @@ /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ - 63A1B3DF23FB4B26001B7732 /* Headers */ = { + 2705472A2CB4DF3F00E2FCAD /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - 63A1B3E923FB4B26001B7732 /* FooKit.h in Headers */, + 270547332CB4DF3F00E2FCAD /* FooKit.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ - 63A1B3E323FB4B26001B7732 /* FooKit */ = { + 2705472E2CB4DF3F00E2FCAD /* FooKit */ = { isa = PBXNativeTarget; - buildConfigurationList = 63A1B3EC23FB4B26001B7732 /* Build configuration list for PBXNativeTarget "FooKit" */; + buildConfigurationList = 270547362CB4DF3F00E2FCAD /* Build configuration list for PBXNativeTarget "FooKit" */; buildPhases = ( - 63A1B3DF23FB4B26001B7732 /* Headers */, - 63A1B3E023FB4B26001B7732 /* Sources */, - 63A1B3E123FB4B26001B7732 /* Frameworks */, - 63A1B3E223FB4B26001B7732 /* Resources */, + 2705472A2CB4DF3F00E2FCAD /* Headers */, + 2705472B2CB4DF3F00E2FCAD /* Sources */, + 2705472C2CB4DF3F00E2FCAD /* Frameworks */, + 2705472D2CB4DF3F00E2FCAD /* Resources */, ); buildRules = ( ); @@ -84,44 +82,44 @@ ); name = FooKit; productName = FooKit; - productReference = 63A1B3E423FB4B26001B7732 /* FooKit.framework */; + productReference = 2705472F2CB4DF3F00E2FCAD /* FooKit.framework */; productType = "com.apple.product-type.framework"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ - 63A1B3DB23FB4B26001B7732 /* Project object */ = { + 270547262CB4DF3F00E2FCAD /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1140; - ORGANIZATIONNAME = "swiftpm-fixture"; + BuildIndependentTargetsInParallel = 1; + LastUpgradeCheck = 1510; TargetAttributes = { - 63A1B3E323FB4B26001B7732 = { - CreatedOnToolsVersion = 11.4; - LastSwiftMigration = 1140; + 2705472E2CB4DF3F00E2FCAD = { + CreatedOnToolsVersion = 15.1; + LastSwiftMigration = 1510; }; }; }; - buildConfigurationList = 63A1B3DE23FB4B26001B7732 /* Build configuration list for PBXProject "FooKit" */; - compatibilityVersion = "Xcode 9.3"; + buildConfigurationList = 270547292CB4DF3F00E2FCAD /* Build configuration list for PBXProject "FooKit" */; + compatibilityVersion = "Xcode 14.0"; developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( en, Base, ); - mainGroup = 63A1B3DA23FB4B26001B7732; - productRefGroup = 63A1B3E523FB4B26001B7732 /* Products */; + mainGroup = 270547252CB4DF3F00E2FCAD; + productRefGroup = 270547302CB4DF3F00E2FCAD /* Products */; projectDirPath = ""; projectRoot = ""; targets = ( - 63A1B3E323FB4B26001B7732 /* FooKit */, + 2705472E2CB4DF3F00E2FCAD /* FooKit */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ - 63A1B3E223FB4B26001B7732 /* Resources */ = { + 2705472D2CB4DF3F00E2FCAD /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( @@ -131,25 +129,25 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ - 63A1B3E023FB4B26001B7732 /* Sources */ = { + 2705472B2CB4DF3F00E2FCAD /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 63A1B3F023FB4B32001B7732 /* FooKit.swift in Sources */, + 2705473A2CB4DF8B00E2FCAD /* Foo.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin XCBuildConfiguration section */ - 63A1B3EA23FB4B26001B7732 /* Debug */ = { + 270547342CB4DF3F00E2FCAD /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_ENABLE_OBJC_WEAK = YES; @@ -168,6 +166,7 @@ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; @@ -179,7 +178,8 @@ DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; @@ -193,26 +193,27 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; MACOSX_DEPLOYMENT_TARGET = 10.15; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; name = Debug; }; - 63A1B3EB23FB4B26001B7732 /* Release */ = { + 270547352CB4DF3F00E2FCAD /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; CLANG_ANALYZER_NONNULL = YES; CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_ENABLE_OBJC_WEAK = YES; @@ -231,6 +232,7 @@ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; @@ -242,7 +244,8 @@ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; @@ -250,62 +253,82 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; MACOSX_DEPLOYMENT_TARGET = 10.15; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; SDKROOT = macosx; SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; }; name = Release; }; - 63A1B3ED23FB4B26001B7732 /* Debug */ = { + 270547372CB4DF3F00E2FCAD /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CLANG_ENABLE_MODULES = YES; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = ""; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = FooKit/Info.plist; + ENABLE_MODULE_VERIFIER = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", "@loader_path/Frameworks", ); + MACOSX_DEPLOYMENT_TARGET = 10.15; + MARKETING_VERSION = 1.0; + MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; + MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; PRODUCT_BUNDLE_IDENTIFIER = org.swift.swiftpm.fixture.FooKit; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; }; name = Debug; }; - 63A1B3EE23FB4B26001B7732 /* Release */ = { + 270547382CB4DF3F00E2FCAD /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - BUILD_LIBRARY_FOR_DISTRIBUTION = YES; CLANG_ENABLE_MODULES = YES; - CODE_SIGN_STYLE = Automatic; + CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = ""; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; - INFOPLIST_FILE = FooKit/Info.plist; + ENABLE_MODULE_VERIFIER = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/../Frameworks", "@loader_path/Frameworks", ); + MACOSX_DEPLOYMENT_TARGET = 10.15; + MARKETING_VERSION = 1.0; + MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; + MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; PRODUCT_BUNDLE_IDENTIFIER = org.swift.swiftpm.fixture.FooKit; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; }; name = Release; @@ -313,25 +336,25 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 63A1B3DE23FB4B26001B7732 /* Build configuration list for PBXProject "FooKit" */ = { + 270547292CB4DF3F00E2FCAD /* Build configuration list for PBXProject "FooKit" */ = { isa = XCConfigurationList; buildConfigurations = ( - 63A1B3EA23FB4B26001B7732 /* Debug */, - 63A1B3EB23FB4B26001B7732 /* Release */, + 270547342CB4DF3F00E2FCAD /* Debug */, + 270547352CB4DF3F00E2FCAD /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 63A1B3EC23FB4B26001B7732 /* Build configuration list for PBXNativeTarget "FooKit" */ = { + 270547362CB4DF3F00E2FCAD /* Build configuration list for PBXNativeTarget "FooKit" */ = { isa = XCConfigurationList; buildConfigurations = ( - 63A1B3ED23FB4B26001B7732 /* Debug */, - 63A1B3EE23FB4B26001B7732 /* Release */, + 270547372CB4DF3F00E2FCAD /* Debug */, + 270547382CB4DF3F00E2FCAD /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; - rootObject = 63A1B3DB23FB4B26001B7732 /* Project object */; + rootObject = 270547262CB4DF3F00E2FCAD /* Project object */; } diff --git a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/FooKit.swift b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/Foo.swift similarity index 100% rename from Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/FooKit.swift rename to Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/Foo.swift diff --git a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/Info.plist b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/Info.plist deleted file mode 100644 index 9bcb244429e..00000000000 --- a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/Info.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - $(CURRENT_PROJECT_VERSION) - - From cb15a594752eb835c0ea835281ffe49e05f86b9f Mon Sep 17 00:00:00 2001 From: Kyle Date: Tue, 8 Oct 2024 12:32:29 +0800 Subject: [PATCH 15/21] Fix XCTSkip issue --- Tests/BuildTests/PluginsBuildPlanTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/BuildTests/PluginsBuildPlanTests.swift b/Tests/BuildTests/PluginsBuildPlanTests.swift index 72f77be344d..9415b7fc780 100644 --- a/Tests/BuildTests/PluginsBuildPlanTests.swift +++ b/Tests/BuildTests/PluginsBuildPlanTests.swift @@ -83,7 +83,7 @@ final class PluginsBuildPlanTests: XCTestCase { func testDocCPluginForBinaryDependency() async throws { #if !os(macOS) // binaryTarget/xcframework is only supported on Darwin platform - try XCTSkip("Test requires macOS") + throw XCTSkip("Test requires macOS") #endif try await fixture(name: "Miscellaneous/Plugins/SymbolGraphForBinaryDependency") { fixturePath in From ad5ab01e0129b288b9818b09dc3bf738a9a09711 Mon Sep 17 00:00:00 2001 From: Kyle Date: Tue, 8 Oct 2024 15:10:35 +0800 Subject: [PATCH 16/21] Downgrade to Xcode 15.0.1 --- .../FooKit/FooKit.xcodeproj/project.pbxproj | 94 +++++++++---------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj index 39cdd7a9d31..6e1e40726dc 100644 --- a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj +++ b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj @@ -3,22 +3,22 @@ archiveVersion = 1; classes = { }; - objectVersion = 56; + objectVersion = 50; objects = { /* Begin PBXBuildFile section */ - 270547332CB4DF3F00E2FCAD /* FooKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 270547322CB4DF3F00E2FCAD /* FooKit.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 2705473A2CB4DF8B00E2FCAD /* Foo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 270547392CB4DF8B00E2FCAD /* Foo.swift */; }; + 27EB01AF2CB510F1007CCC7E /* FooKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 27EB01AE2CB510F1007CCC7E /* FooKit.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 27EB01B62CB5110F007CCC7E /* Foo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 27EB01B52CB5110F007CCC7E /* Foo.swift */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ - 2705472F2CB4DF3F00E2FCAD /* FooKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = FooKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 270547322CB4DF3F00E2FCAD /* FooKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FooKit.h; sourceTree = ""; }; - 270547392CB4DF8B00E2FCAD /* Foo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Foo.swift; sourceTree = ""; }; + 27EB01AB2CB510F1007CCC7E /* FooKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = FooKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 27EB01AE2CB510F1007CCC7E /* FooKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FooKit.h; sourceTree = ""; }; + 27EB01B52CB5110F007CCC7E /* Foo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Foo.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ - 2705472C2CB4DF3F00E2FCAD /* Frameworks */ = { + 27EB01A82CB510F1007CCC7E /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( @@ -28,27 +28,27 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 270547252CB4DF3F00E2FCAD = { + 27EB01A12CB510F1007CCC7E = { isa = PBXGroup; children = ( - 270547312CB4DF3F00E2FCAD /* FooKit */, - 270547302CB4DF3F00E2FCAD /* Products */, + 27EB01AD2CB510F1007CCC7E /* FooKit */, + 27EB01AC2CB510F1007CCC7E /* Products */, ); sourceTree = ""; }; - 270547302CB4DF3F00E2FCAD /* Products */ = { + 27EB01AC2CB510F1007CCC7E /* Products */ = { isa = PBXGroup; children = ( - 2705472F2CB4DF3F00E2FCAD /* FooKit.framework */, + 27EB01AB2CB510F1007CCC7E /* FooKit.framework */, ); name = Products; sourceTree = ""; }; - 270547312CB4DF3F00E2FCAD /* FooKit */ = { + 27EB01AD2CB510F1007CCC7E /* FooKit */ = { isa = PBXGroup; children = ( - 270547322CB4DF3F00E2FCAD /* FooKit.h */, - 270547392CB4DF8B00E2FCAD /* Foo.swift */, + 27EB01AE2CB510F1007CCC7E /* FooKit.h */, + 27EB01B52CB5110F007CCC7E /* Foo.swift */, ); path = FooKit; sourceTree = ""; @@ -56,25 +56,25 @@ /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */ - 2705472A2CB4DF3F00E2FCAD /* Headers */ = { + 27EB01A62CB510F1007CCC7E /* Headers */ = { isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - 270547332CB4DF3F00E2FCAD /* FooKit.h in Headers */, + 27EB01AF2CB510F1007CCC7E /* FooKit.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ - 2705472E2CB4DF3F00E2FCAD /* FooKit */ = { + 27EB01AA2CB510F1007CCC7E /* FooKit */ = { isa = PBXNativeTarget; - buildConfigurationList = 270547362CB4DF3F00E2FCAD /* Build configuration list for PBXNativeTarget "FooKit" */; + buildConfigurationList = 27EB01B22CB510F1007CCC7E /* Build configuration list for PBXNativeTarget "FooKit" */; buildPhases = ( - 2705472A2CB4DF3F00E2FCAD /* Headers */, - 2705472B2CB4DF3F00E2FCAD /* Sources */, - 2705472C2CB4DF3F00E2FCAD /* Frameworks */, - 2705472D2CB4DF3F00E2FCAD /* Resources */, + 27EB01A62CB510F1007CCC7E /* Headers */, + 27EB01A72CB510F1007CCC7E /* Sources */, + 27EB01A82CB510F1007CCC7E /* Frameworks */, + 27EB01A92CB510F1007CCC7E /* Resources */, ); buildRules = ( ); @@ -82,25 +82,25 @@ ); name = FooKit; productName = FooKit; - productReference = 2705472F2CB4DF3F00E2FCAD /* FooKit.framework */; + productReference = 27EB01AB2CB510F1007CCC7E /* FooKit.framework */; productType = "com.apple.product-type.framework"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ - 270547262CB4DF3F00E2FCAD /* Project object */ = { + 27EB01A22CB510F1007CCC7E /* Project object */ = { isa = PBXProject; attributes = { BuildIndependentTargetsInParallel = 1; - LastUpgradeCheck = 1510; + LastUpgradeCheck = 1500; TargetAttributes = { - 2705472E2CB4DF3F00E2FCAD = { - CreatedOnToolsVersion = 15.1; - LastSwiftMigration = 1510; + 27EB01AA2CB510F1007CCC7E = { + CreatedOnToolsVersion = 15.0.1; + LastSwiftMigration = 1500; }; }; }; - buildConfigurationList = 270547292CB4DF3F00E2FCAD /* Build configuration list for PBXProject "FooKit" */; + buildConfigurationList = 27EB01A52CB510F1007CCC7E /* Build configuration list for PBXProject "FooKit" */; compatibilityVersion = "Xcode 14.0"; developmentRegion = en; hasScannedForEncodings = 0; @@ -108,18 +108,18 @@ en, Base, ); - mainGroup = 270547252CB4DF3F00E2FCAD; - productRefGroup = 270547302CB4DF3F00E2FCAD /* Products */; + mainGroup = 27EB01A12CB510F1007CCC7E; + productRefGroup = 27EB01AC2CB510F1007CCC7E /* Products */; projectDirPath = ""; projectRoot = ""; targets = ( - 2705472E2CB4DF3F00E2FCAD /* FooKit */, + 27EB01AA2CB510F1007CCC7E /* FooKit */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ - 2705472D2CB4DF3F00E2FCAD /* Resources */ = { + 27EB01A92CB510F1007CCC7E /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( @@ -129,18 +129,18 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ - 2705472B2CB4DF3F00E2FCAD /* Sources */ = { + 27EB01A72CB510F1007CCC7E /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 2705473A2CB4DF8B00E2FCAD /* Foo.swift in Sources */, + 27EB01B62CB5110F007CCC7E /* Foo.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin XCBuildConfiguration section */ - 270547342CB4DF3F00E2FCAD /* Debug */ = { + 27EB01B02CB510F1007CCC7E /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; @@ -206,7 +206,7 @@ }; name = Debug; }; - 270547352CB4DF3F00E2FCAD /* Release */ = { + 27EB01B12CB510F1007CCC7E /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; @@ -264,7 +264,7 @@ }; name = Release; }; - 270547372CB4DF3F00E2FCAD /* Debug */ = { + 27EB01B32CB510F1007CCC7E /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_MODULES = YES; @@ -299,7 +299,7 @@ }; name = Debug; }; - 270547382CB4DF3F00E2FCAD /* Release */ = { + 27EB01B42CB510F1007CCC7E /* Release */ = { isa = XCBuildConfiguration; buildSettings = { CLANG_ENABLE_MODULES = YES; @@ -336,25 +336,25 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - 270547292CB4DF3F00E2FCAD /* Build configuration list for PBXProject "FooKit" */ = { + 27EB01A52CB510F1007CCC7E /* Build configuration list for PBXProject "FooKit" */ = { isa = XCConfigurationList; buildConfigurations = ( - 270547342CB4DF3F00E2FCAD /* Debug */, - 270547352CB4DF3F00E2FCAD /* Release */, + 27EB01B02CB510F1007CCC7E /* Debug */, + 27EB01B12CB510F1007CCC7E /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 270547362CB4DF3F00E2FCAD /* Build configuration list for PBXNativeTarget "FooKit" */ = { + 27EB01B22CB510F1007CCC7E /* Build configuration list for PBXNativeTarget "FooKit" */ = { isa = XCConfigurationList; buildConfigurations = ( - 270547372CB4DF3F00E2FCAD /* Debug */, - 270547382CB4DF3F00E2FCAD /* Release */, + 27EB01B32CB510F1007CCC7E /* Debug */, + 27EB01B42CB510F1007CCC7E /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; - rootObject = 270547262CB4DF3F00E2FCAD /* Project object */; + rootObject = 27EB01A22CB510F1007CCC7E /* Project object */; } From 32370ea32696fd08fe5034e4ede3cbcaa056949c Mon Sep 17 00:00:00 2001 From: Kyle Date: Sat, 12 Oct 2024 10:34:38 +0800 Subject: [PATCH 17/21] Rename GenerateSymbolGraphPlugin file --- ...GetSymbolGraphPlugin.swift => GenerateSymbolGraphPlugin.swift} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/Plugins/GenerateSymbolGraphPlugin/{GetSymbolGraphPlugin.swift => GenerateSymbolGraphPlugin.swift} (100%) diff --git a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/Plugins/GenerateSymbolGraphPlugin/GetSymbolGraphPlugin.swift b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/Plugins/GenerateSymbolGraphPlugin/GenerateSymbolGraphPlugin.swift similarity index 100% rename from Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/Plugins/GenerateSymbolGraphPlugin/GetSymbolGraphPlugin.swift rename to Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/Plugins/GenerateSymbolGraphPlugin/GenerateSymbolGraphPlugin.swift From b3aa099939253bce8628759358ba244a381f80c3 Mon Sep 17 00:00:00 2001 From: Kyle Date: Sat, 12 Oct 2024 21:30:57 +0800 Subject: [PATCH 18/21] Replace xcodeproj with SPM build script Workaround the non-reproduciable CI xcodebuild crash --- .../FooKit/FooKit.xcodeproj/project.pbxproj | 360 ------------------ .../FooKit/FooKit/FooKit.h | 7 - .../FooKit/Package.swift | 13 + .../FooKit/Scripts/archive_xcframework.sh | 82 +++- .../Foo.swift => Sources/FooKit/FooKit.swift} | 2 +- .../Sources/DemoKit/DemoKit.swift | 3 +- 6 files changed, 79 insertions(+), 388 deletions(-) delete mode 100644 Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj delete mode 100644 Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/FooKit.h create mode 100644 Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/Package.swift rename Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/{FooKit/Foo.swift => Sources/FooKit/FooKit.swift} (96%) diff --git a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj deleted file mode 100644 index 6e1e40726dc..00000000000 --- a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit.xcodeproj/project.pbxproj +++ /dev/null @@ -1,360 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 50; - objects = { - -/* Begin PBXBuildFile section */ - 27EB01AF2CB510F1007CCC7E /* FooKit.h in Headers */ = {isa = PBXBuildFile; fileRef = 27EB01AE2CB510F1007CCC7E /* FooKit.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 27EB01B62CB5110F007CCC7E /* Foo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 27EB01B52CB5110F007CCC7E /* Foo.swift */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 27EB01AB2CB510F1007CCC7E /* FooKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = FooKit.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - 27EB01AE2CB510F1007CCC7E /* FooKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FooKit.h; sourceTree = ""; }; - 27EB01B52CB5110F007CCC7E /* Foo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Foo.swift; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 27EB01A82CB510F1007CCC7E /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 27EB01A12CB510F1007CCC7E = { - isa = PBXGroup; - children = ( - 27EB01AD2CB510F1007CCC7E /* FooKit */, - 27EB01AC2CB510F1007CCC7E /* Products */, - ); - sourceTree = ""; - }; - 27EB01AC2CB510F1007CCC7E /* Products */ = { - isa = PBXGroup; - children = ( - 27EB01AB2CB510F1007CCC7E /* FooKit.framework */, - ); - name = Products; - sourceTree = ""; - }; - 27EB01AD2CB510F1007CCC7E /* FooKit */ = { - isa = PBXGroup; - children = ( - 27EB01AE2CB510F1007CCC7E /* FooKit.h */, - 27EB01B52CB5110F007CCC7E /* Foo.swift */, - ); - path = FooKit; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 27EB01A62CB510F1007CCC7E /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 27EB01AF2CB510F1007CCC7E /* FooKit.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 27EB01AA2CB510F1007CCC7E /* FooKit */ = { - isa = PBXNativeTarget; - buildConfigurationList = 27EB01B22CB510F1007CCC7E /* Build configuration list for PBXNativeTarget "FooKit" */; - buildPhases = ( - 27EB01A62CB510F1007CCC7E /* Headers */, - 27EB01A72CB510F1007CCC7E /* Sources */, - 27EB01A82CB510F1007CCC7E /* Frameworks */, - 27EB01A92CB510F1007CCC7E /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = FooKit; - productName = FooKit; - productReference = 27EB01AB2CB510F1007CCC7E /* FooKit.framework */; - productType = "com.apple.product-type.framework"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 27EB01A22CB510F1007CCC7E /* Project object */ = { - isa = PBXProject; - attributes = { - BuildIndependentTargetsInParallel = 1; - LastUpgradeCheck = 1500; - TargetAttributes = { - 27EB01AA2CB510F1007CCC7E = { - CreatedOnToolsVersion = 15.0.1; - LastSwiftMigration = 1500; - }; - }; - }; - buildConfigurationList = 27EB01A52CB510F1007CCC7E /* Build configuration list for PBXProject "FooKit" */; - compatibilityVersion = "Xcode 14.0"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 27EB01A12CB510F1007CCC7E; - productRefGroup = 27EB01AC2CB510F1007CCC7E /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 27EB01AA2CB510F1007CCC7E /* FooKit */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 27EB01A92CB510F1007CCC7E /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 27EB01A72CB510F1007CCC7E /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 27EB01B62CB5110F007CCC7E /* Foo.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - 27EB01B02CB510F1007CCC7E /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - ENABLE_USER_SCRIPT_SANDBOXING = YES; - GCC_C_LANGUAGE_STANDARD = gnu17; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - LOCALIZATION_PREFERS_STRING_CATALOGS = YES; - MACOSX_DEPLOYMENT_TARGET = 10.15; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = macosx; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Debug; - }; - 27EB01B12CB510F1007CCC7E /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 1; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_USER_SCRIPT_SANDBOXING = YES; - GCC_C_LANGUAGE_STANDARD = gnu17; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - LOCALIZATION_PREFERS_STRING_CATALOGS = YES; - MACOSX_DEPLOYMENT_TARGET = 10.15; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - SDKROOT = macosx; - SWIFT_COMPILATION_MODE = wholemodule; - VERSIONING_SYSTEM = "apple-generic"; - VERSION_INFO_PREFIX = ""; - }; - name = Release; - }; - 27EB01B32CB510F1007CCC7E /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_STYLE = Manual; - COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = ""; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = YES; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_KEY_NSHumanReadableCopyright = ""; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 1.0; - MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; - MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; - PRODUCT_BUNDLE_IDENTIFIER = org.swift.swiftpm.fixture.FooKit; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - PROVISIONING_PROFILE_SPECIFIER = ""; - SKIP_INSTALL = YES; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - }; - name = Debug; - }; - 27EB01B42CB510F1007CCC7E /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_ENABLE_MODULES = YES; - CODE_SIGN_STYLE = Manual; - COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; - DEFINES_MODULE = YES; - DEVELOPMENT_TEAM = ""; - DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 1; - DYLIB_INSTALL_NAME_BASE = "@rpath"; - ENABLE_MODULE_VERIFIER = YES; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_KEY_NSHumanReadableCopyright = ""; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@loader_path/Frameworks", - ); - MACOSX_DEPLOYMENT_TARGET = 10.15; - MARKETING_VERSION = 1.0; - MODULE_VERIFIER_SUPPORTED_LANGUAGES = "objective-c objective-c++"; - MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu17 gnu++20"; - PRODUCT_BUNDLE_IDENTIFIER = org.swift.swiftpm.fixture.FooKit; - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; - PROVISIONING_PROFILE_SPECIFIER = ""; - SKIP_INSTALL = YES; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_VERSION = 5.0; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 27EB01A52CB510F1007CCC7E /* Build configuration list for PBXProject "FooKit" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 27EB01B02CB510F1007CCC7E /* Debug */, - 27EB01B12CB510F1007CCC7E /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 27EB01B22CB510F1007CCC7E /* Build configuration list for PBXNativeTarget "FooKit" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 27EB01B32CB510F1007CCC7E /* Debug */, - 27EB01B42CB510F1007CCC7E /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 27EB01A22CB510F1007CCC7E /* Project object */; -} diff --git a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/FooKit.h b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/FooKit.h deleted file mode 100644 index 27365056b11..00000000000 --- a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/FooKit.h +++ /dev/null @@ -1,7 +0,0 @@ -#import - -//! Project version number for FooKit. -FOUNDATION_EXPORT double FooKitVersionNumber; - -//! Project version string for FooKit. -FOUNDATION_EXPORT const unsigned char FooKitVersionString[]; diff --git a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/Package.swift b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/Package.swift new file mode 100644 index 00000000000..e18c683f646 --- /dev/null +++ b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/Package.swift @@ -0,0 +1,13 @@ +// swift-tools-version: 5.8 + +import PackageDescription + +let package = Package( + name: "FooKit", + products: [ + .library(name: "FooKit", type: .dynamic, targets: ["FooKit"]), + ], + targets: [ + .target(name: "FooKit"), + ] +) diff --git a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/Scripts/archive_xcframework.sh b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/Scripts/archive_xcframework.sh index e84d8ea95e2..5768de445ea 100755 --- a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/Scripts/archive_xcframework.sh +++ b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/Scripts/archive_xcframework.sh @@ -11,27 +11,73 @@ ## ##===----------------------------------------------------------------------===## -# A `realpath` alternative using the default C implementation. -filepath() { - [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" +set -e + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd -P)" +PROJECT_ROOT="$(dirname "$SCRIPT_DIR")" + +cd $PROJECT_ROOT + +PROJECT_BUILD_DIR="${PROJECT_BUILD_DIR:-"${PROJECT_ROOT}/.build"}" +XCODEBUILD_BUILD_DIR="$PROJECT_BUILD_DIR/xcodebuild" +XCODEBUILD_DERIVED_DATA_PATH="$XCODEBUILD_BUILD_DIR/DerivedData" + +PACKAGE_NAME=$1 +if [ -z "$PACKAGE_NAME" ]; then + echo "No package name provided. Using the first scheme found in the Package.swift." + PACKAGE_NAME=$(xcodebuild -list | awk 'schemes && NF>0 { print $1; exit } /Schemes:$/ { schemes = 1 }') + echo "Using: $PACKAGE_NAME" +fi + +build_framework() { + local sdk="$1" + local destination="$2" + local scheme="$3" + + local XCODEBUILD_ARCHIVE_PATH="$PROJECT_BUILD_DIR/$scheme-$sdk.xcarchive" + + rm -rf "$XCODEBUILD_ARCHIVE_PATH" + + PROTOBUFKIT_LIBRARY_TYPE=dynamic xcodebuild archive \ + -scheme $scheme \ + -archivePath $XCODEBUILD_ARCHIVE_PATH \ + -derivedDataPath "$XCODEBUILD_DERIVED_DATA_PATH" \ + -sdk "$sdk" \ + -destination "$destination" \ + BUILD_LIBRARY_FOR_DISTRIBUTION=YES \ + INSTALL_PATH='Library/Frameworks' \ + OTHER_SWIFT_FLAGS=-no-verify-emitted-module-interface + + if [ "$sdk" = "macosx" ]; then + FRAMEWORK_MODULES_PATH="$XCODEBUILD_ARCHIVE_PATH/Products/Library/Frameworks/$scheme.framework/Versions/Current/Modules" + mkdir -p "$FRAMEWORK_MODULES_PATH" + cp -r \ + "$XCODEBUILD_DERIVED_DATA_PATH/Build/Intermediates.noindex/ArchiveIntermediates/$scheme/BuildProductsPath/Release/$scheme.swiftmodule" \ + "$FRAMEWORK_MODULES_PATH/$scheme.swiftmodule" + rm -rf "$XCODEBUILD_ARCHIVE_PATH/Products/Library/Frameworks/$scheme.framework/Modules" + ln -s Versions/Current/Modules "$XCODEBUILD_ARCHIVE_PATH/Products/Library/Frameworks/$scheme.framework/Modules" + else + FRAMEWORK_MODULES_PATH="$XCODEBUILD_ARCHIVE_PATH/Products/Library/Frameworks/$scheme.framework/Modules" + mkdir -p "$FRAMEWORK_MODULES_PATH" + cp -r \ + "$XCODEBUILD_DERIVED_DATA_PATH/Build/Intermediates.noindex/ArchiveIntermediates/$scheme/BuildProductsPath/Release-$sdk/$scheme.swiftmodule" \ + "$FRAMEWORK_MODULES_PATH/$scheme.swiftmodule" + fi + + # Delete private and package swiftinterface + rm -f "$FRAMEWORK_MODULES_PATH/$scheme.swiftmodule/*.package.swiftinterface" + rm -f "$FRAMEWORK_MODULES_PATH/$scheme.swiftmodule/*.private.swiftinterface" } -ROOT="$(dirname $(dirname $(filepath $0)))" +build_framework "macosx" "generic/platform=macOS" "$PACKAGE_NAME" -cd $ROOT +echo "Builds completed successfully." -rm -rf archives +cd $PROJECT_BUILD_DIR -xcodebuild archive \ --project FooKit.xcodeproj \ --scheme FooKit \ --configuration Release \ --destination "generic/platform=macOS" \ --archivePath "archives/macOS" \ -SKIP_INSTALL=NO \ -BUILD_LIBRARY_FOR_DISTRIBUTION=YES +XCFRAMEWORK_DESTINATION="$PROJECT_ROOT/../$PACKAGE_NAME.xcframework" -xcodebuild \ --create-xcframework \ --archive archives/macOS.xcarchive -framework FooKit.framework \ --output ../FooKit.xcframework +rm -rf $XCFRAMEWORK_DESTINATION +xcodebuild -create-xcframework \ + -framework $PACKAGE_NAME-macosx.xcarchive/Products/Library/Frameworks/$PACKAGE_NAME.framework \ + -output $XCFRAMEWORK_DESTINATION diff --git a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/Foo.swift b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/Sources/FooKit/FooKit.swift similarity index 96% rename from Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/Foo.swift rename to Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/Sources/FooKit/FooKit.swift index 7dc1d30bd24..00b68e63e99 100644 --- a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/FooKit/Foo.swift +++ b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/FooKit/Sources/FooKit/FooKit.swift @@ -1,4 +1,4 @@ /// print "foo" public func foo() { print("foo") -} +} \ No newline at end of file diff --git a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/Sources/DemoKit/DemoKit.swift b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/Sources/DemoKit/DemoKit.swift index 5c0f7ee00be..899eeebefea 100644 --- a/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/Sources/DemoKit/DemoKit.swift +++ b/Fixtures/Miscellaneous/Plugins/SymbolGraphForBinaryDependency/Sources/DemoKit/DemoKit.swift @@ -2,6 +2,5 @@ import FooKit public func greeting(_ name: String) { FooKit.foo() - print("Hello \(name) with FooKit \(FooKitVersionNumber)") + print("Hello \(name)") } - From d7604335ffc50a12d54f6fb80f3e58c779d2223e Mon Sep 17 00:00:00 2001 From: Kyle Date: Sat, 12 Oct 2024 23:45:59 +0800 Subject: [PATCH 19/21] [DNM] Add debug code to investigate --- Tests/BuildTests/PluginsBuildPlanTests.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/BuildTests/PluginsBuildPlanTests.swift b/Tests/BuildTests/PluginsBuildPlanTests.swift index 9415b7fc780..4d882f63ede 100644 --- a/Tests/BuildTests/PluginsBuildPlanTests.swift +++ b/Tests/BuildTests/PluginsBuildPlanTests.swift @@ -90,6 +90,8 @@ final class PluginsBuildPlanTests: XCTestCase { let result = try await AsyncProcess.popen(arguments: [ fixturePath.appending(RelativePath("FooKit/Scripts/archive_xcframework.sh")).pathString, ]) + try print(result.utf8Output()) + try print(result.utf8stderrOutput()) XCTAssertEqual(result.exitStatus, .terminated(code: 0)) // Before we add -F support for xcframework, this call will throw since the command will abort with a non-zero exit code let _ = try await executeSwiftPackage(fixturePath, extraArgs: ["generate-symbol-graph"]) From fec29c8d7820c5a1012ac3347330de3c410a018b Mon Sep 17 00:00:00 2001 From: Kyle Date: Sun, 13 Oct 2024 01:11:30 +0800 Subject: [PATCH 20/21] Add explict scheme to fix old Xcode issue --- Tests/BuildTests/PluginsBuildPlanTests.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/BuildTests/PluginsBuildPlanTests.swift b/Tests/BuildTests/PluginsBuildPlanTests.swift index 4d882f63ede..51bbc841694 100644 --- a/Tests/BuildTests/PluginsBuildPlanTests.swift +++ b/Tests/BuildTests/PluginsBuildPlanTests.swift @@ -89,6 +89,7 @@ final class PluginsBuildPlanTests: XCTestCase { try await fixture(name: "Miscellaneous/Plugins/SymbolGraphForBinaryDependency") { fixturePath in let result = try await AsyncProcess.popen(arguments: [ fixturePath.appending(RelativePath("FooKit/Scripts/archive_xcframework.sh")).pathString, + "FooKit" ]) try print(result.utf8Output()) try print(result.utf8stderrOutput()) From d57ee08278177a11dcfd0d8bd6bcdff74b426c4a Mon Sep 17 00:00:00 2001 From: Kyle Date: Tue, 29 Oct 2024 13:59:41 +0800 Subject: [PATCH 21/21] Update libraryBinaryPaths logic suggested by @xedin --- .../SwiftModuleBuildDescription.swift | 13 ++++++++++++- Sources/Build/BuildPlan/BuildPlan+Swift.swift | 5 +---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Sources/Build/BuildDescription/SwiftModuleBuildDescription.swift b/Sources/Build/BuildDescription/SwiftModuleBuildDescription.swift index 9d631dc2cfe..5be2f6f2d2d 100644 --- a/Sources/Build/BuildDescription/SwiftModuleBuildDescription.swift +++ b/Sources/Build/BuildDescription/SwiftModuleBuildDescription.swift @@ -521,7 +521,10 @@ public final class SwiftModuleBuildDescription { // Only add the build path to the framework search path if there are binary frameworks to link against. if !self.libraryBinaryPaths.isEmpty { - args += ["-F", self.buildParameters.buildPath.pathString] + args += [ + "-F", self.buildParameters.buildPath.pathString, + "-Xcc", "-F", "-Xcc", self.buildParameters.buildPath.pathString + ] } // Emit the ObjC compatibility header if enabled. @@ -656,6 +659,14 @@ public final class SwiftModuleBuildDescription { // FIXME: only pass paths to the actual dependencies of the module // Include search paths for swift module dependencies. args += ["-I", self.modulesPath.pathString] + + // Only add the build path to the framework search path if there are binary frameworks to link against. + if !self.libraryBinaryPaths.isEmpty { + args += [ + "-F", self.buildParameters.buildPath.pathString, + "-Xcc", "-F", "-Xcc", self.buildParameters.buildPath.pathString + ] + } // FIXME: Only include valid args // This condition should instead only include args which are known to be diff --git a/Sources/Build/BuildPlan/BuildPlan+Swift.swift b/Sources/Build/BuildPlan/BuildPlan+Swift.swift index 05c25e445c1..bc5d961c92c 100644 --- a/Sources/Build/BuildPlan/BuildPlan+Swift.swift +++ b/Sources/Build/BuildPlan/BuildPlan+Swift.swift @@ -43,10 +43,7 @@ extension BuildPlan { let libraries = try self.parseXCFramework(for: target, triple: swiftTarget.buildParameters.triple) for library in libraries { library.headersPaths.forEach { - swiftTarget.additionalFlags += [ - "-I", $0.pathString, "-Xcc", "-I", "-Xcc", $0.pathString, - "-F", $0.pathString, "-Xcc", "-F", "-Xcc", $0.pathString, - ] + swiftTarget.libraryBinaryPaths.insert($0) } swiftTarget.libraryBinaryPaths.insert(library.libraryPath) }