This repository was archived by the owner on Sep 15, 2025. It is now read-only.
Commit b65746d
committed
Move
The SPM-compatible folder structure was giving me trouble when trying to
validate the `podspec`.
At first, I thought it was simply because
`WordPressComRESTAPIInterfacing.h` was not in a path known to CocoaPods.
But even after updating the `podspec` to:
```diff
@@ -18,9 +18,10 @@ Pod::Spec.new do |s|
s.swift_version = '5.0'
s.source = { git: 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', tag: s.version.to_s }
- s.source_files = 'WordPressKit/**/*.{h,m,swift}'
+
+ s.source_files = 'WordPressKit/**/*.{h,m,swift}', 'Sources/**/*.{h,m,swift}'
+ s.public_header_files = 'Sources/**/include/*.h', 'WordPressKit/**/.h', 'WordPressKit/WordPressKit.h'
s.private_header_files = 'WordPressKit/Private/*.h'
- s.header_dir = 'WordPressKit'
s.dependency 'NSObject-SafeExpectations', '~> 0.0.4'
s.dependency 'wpxmlrpc', '~> 0.10'
```
I still got errors:
```
- ERROR | xcodebuild: /var/folders/dq/cdqxvx3s5ps75564rpmb_dc00000gn/T/CocoaPods-Lint-20240321-63072-nntpgw-WordPressKit/DerivedData/App/Build/Products/Release-iphonesimulator/WordPressKit/WordPressKit.framework/Headers/WordPressKit.h:10:9: error: 'WordPressKit/ServiceRemoteWordPressComREST.h' file not found
```
In the proof of concept from
#738, the SPM
folder structure is compatible with CocoaPods. As such, I decided to
defer moving the files to when I can do it in one go.WordPressComRESTAPIInterfacing.h to WordPressKit folder1 parent de1c24c commit b65746d
File tree
2 files changed
+1
-25
lines changed- WordPressKit.xcodeproj
- WordPressKit
2 files changed
+1
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1560 | 1560 | | |
1561 | 1561 | | |
1562 | 1562 | | |
1563 | | - | |
1564 | | - | |
1565 | | - | |
1566 | | - | |
1567 | | - | |
1568 | | - | |
1569 | | - | |
1570 | | - | |
1571 | | - | |
1572 | | - | |
1573 | | - | |
1574 | | - | |
1575 | | - | |
1576 | | - | |
1577 | | - | |
1578 | | - | |
1579 | | - | |
1580 | | - | |
1581 | | - | |
1582 | | - | |
1583 | | - | |
1584 | | - | |
1585 | | - | |
1586 | | - | |
1587 | 1563 | | |
1588 | 1564 | | |
1589 | 1565 | | |
| |||
1965 | 1941 | | |
1966 | 1942 | | |
1967 | 1943 | | |
1968 | | - | |
1969 | 1944 | | |
1970 | 1945 | | |
1971 | 1946 | | |
| |||
2553 | 2528 | | |
2554 | 2529 | | |
2555 | 2530 | | |
| 2531 | + | |
2556 | 2532 | | |
2557 | 2533 | | |
2558 | 2534 | | |
| |||
File renamed without changes.
0 commit comments