标签: expo-module

将 expo-modules 与第 3 方本地 xcframework (iOS) 结合使用

我正在尝试使用 expo-modules 为官方 Spotify SDK 构建一个反应本机包装模块。我已.podspec使用s.vendored_frameworks. 示例应用程序的项目预构建工作正常,但框架的头文件不会被复制,并且在为模拟器构建应用程序时,我收到此错误:

\n
\xe2\x9d\x8c  (/Users/<username>/Library/Developer/Xcode/DerivedData/expospotifyexample-ayfjxgjzbhoakacqvfpiaawhvpwz/Build/Products/Debug-iphonesimulator/ExpoSpotify/ExpoSpotify-umbrella.h:13:9)\n\n  11 | #endif\n  12 | \n> 13 | #import "SpotifyAppRemote.h"\n     |         ^ 'SpotifyAppRemote.h' file not found\n  14 | #import "SpotifyiOS.h"\n  15 | #import "SPTAppRemote.h"\n  16 | #import "SPTAppRemoteAlbum.h"\n
Run Code Online (Sandbox Code Playgroud)\n

如果我手动将SDK的头文件复制到错误所在的路径,它就可以正常工作。

\n

我的文件夹结构(只是重要的部分):

\n
\xe2\x94\x9c\xe2\x94\x80 example/\n\xe2\x94\x82  \xe2\x94\x9c\xe2\x94\x80 ios/\n\xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x9c\xe2\x94\x80 Pods/\n\xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x9c\xe2\x94\x80 Headers/\n\xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x9c\xe2\x94\x80 Public/\n\xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x9c\xe2\x94\x80 ExpoSpotify/\n\xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x9c\xe2\x94\x80 ExpoSpotify.modulemap\n\xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x82  \xe2\x94\x82 …
Run Code Online (Sandbox Code Playgroud)

ios react-native expo react-native-native-module expo-module

6
推荐指数
0
解决办法
391
查看次数