amplitude / amplitude/Amplitude-TypeScript

Mac Catalyst support

オープン
#217 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug enhancement
主要言語
TypeScript
スター
180
フォーク
68
平均マージ
3日 1時間
マージ済み PR(30日)
29

説明

Hi, I wasn't sure if this was a new feature request or a bug, but the bug template seems more appropriate.

Does Amplitude React Native support running on Mac Catalyst?

## Expected Behaviour
Building a React Native app including Amplitude-TypeScript/packages/analytics-react-native should build successfully after enable Mac Catalyst support.

## Current Behaviour
I get a build failure with missing Swift symbols:

```
ld: warning: Could not find or use auto-linked library 'swiftUIKit'
Undefined symbols for architecture x86_64:
"__swift_FORCE_LOAD_$_swiftUIKit", referenced from:
__swift_FORCE_LOAD_$_swiftUIKit_$_amplitude_react_native in libamplitude-react-native.a(AppleContextProvider.o)
__swift_FORCE_LOAD_$_swiftUIKit_$_amplitude_react_native in libamplitude-react-native.a(AmplitudeReactNative-5b47eea62d6c653ce7e7364def6def16.o)
(maybe you meant: __swift_FORCE_LOAD_$_swiftUIKit_$_amplitude_react_native)
ld: symbol(s) not found for architecture x86_64
```

If I remove the Amplitude npm module ( `"@amplitude/analytics-react-native": "^0.4.0",` ) then my app builds OK.

I also tried this on the previous/legacy Amplitude RN npm module with similar errors (slightly different filenames).

## Possible Solution

I'm not sure of the solution but perhaps it's the same as https://github.com/amplitude/Amplitude-iOS/issues/327 which has been solved for the IOS library.

## Steps to Reproduce

1. Make a React Native project (I'm using v0.67.4)
2. `npm i @amplitude/analytics-react-native` and pod install
3. In XCode Project target > General > Deployment Info > tick "Mac Catalyst"
4. Build

## Environment
- JS SDK Version: 0.4.0
- Installation Method: npm
- React Native v0.67.4
- XCode 13.4.1
- MacOS 12.2.1

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。