Repository navigation
Swift Package Manager autolinking works on React Native 0.88. No API change, CocoaPods users have nothing to do.
Fixed
- iOS: React Native 0.88 takes a library's SwiftPM product name from
swiftpmConfig.nameinpackage.json, falling back to the podspec name (react-native-zeroconf). The product isReactNativeZeroconf, so 0.17.4 to 0.17.6 failed at package resolution there.package.jsonnow declares the name. With SwiftPM, runnpx react-native spm updateafter upgrading and rebuild, see Installation on iOS. Thanks @chrfalch (#201).
Tested
- A fresh React Native 0.88.0 app with the fix, set up with
npx react-native spm add --deintegrate: Release build on the iOS 27.1 simulator, the package resolved andnew Zeroconf()ran. Without the fix the build fails at package resolution. - CI: lint, tests and types, the iOS, Android and Windows builds, the iOS (macOS) and Windows harnesses.
The same fix for the 1.0 C++ module is in 1.0.0-rc.3 (npm install react-native-zeroconf@next).
Full Changelog: 0.17.6...0.17.7