Skip to content

修改原生SDK依赖后无法build ios-framework #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
KeepStudyingAce opened this issue Nov 29, 2022 · 2 comments
Open

修改原生SDK依赖后无法build ios-framework #22

KeepStudyingAce opened this issue Nov 29, 2022 · 2 comments

Comments

@KeepStudyingAce
Copy link

我们原生用的神策SDK是在你们基础上封装了一层,主要是精简了数据上报的格式;
现在在原生项目中嵌入Flutter页面的时候,我将你们sensors_analytics_flutter_plugin拉到自己的git仓库后,将原生依赖的神策SDK修改为了已用的自己的神策SDK,修改后能正常编译运行。为了嵌入原生项目的时候使用flutter build ios-framework编译Flutter模块的时候,控制台打印在building plugin的时候报错如下:
Unable to build plugin frameworks for simulator:
2022-11-29 14:26:58.358 xcodebuild[8373:12957855]
Requested but did not find extension point with
identifier
Xcode.IDEKit.ExtensionSentinelHostApplications for
extension
Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of
plug-in com.apple.dt.IDEWatchSupportCore
2022-11-29 14:26:58.367 xcodebuild[8373:12957855]
Requested but did not find extension point with
identifier
Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifi
er for extension
Xcode.DebuggerFoundation.AppExtensionToBundleIdentifi
erMap.watchOS of plug-in
com.apple.dt.IDEWatchSupportCore
** BUILD FAILED **

The following build commands failed:
Ld
/Users/lts/Desktop/Lib/Debug/iphonesimulator/Pods.bu
ild/Debug-iphonesimulator/sensors_analytics_flutter_
plugin.build/Objects-normal/arm64/Binary/sensors_ana
lytics_flutter_plugin normal arm64 (in target
'sensors_analytics_flutter_plugin' from project
'Pods')
(1 failure)

到Flutter下提issue,回复需要找三方库的开发看具体的问题;
没有修改库的配置,只是iOS文件夹下的 sensors_analytics_flutter_plugin.podspec 文件中的 s.dependency 修改成了自己封装的神策SDK。
不知道你们是否知道问题的原因,或者排查该问题的一些方向,
谢谢

@GvcZhang
Copy link
Contributor

GvcZhang commented Dec 1, 2022

按照你们上述的操作,如果不修改原生依赖,单单只使用我们提供的插件也存在同样的问题吗?

@KeepStudyingAce
Copy link
Author

不会,使用你们的是可以正常build。由于本身App已经集成了一个封装了固定版本神策SDK的库,所以我们只能替换成我们自己的SDK库。过程没有修改任何的配置,仅仅修改了sdk依赖以及部分api而已,却导致了flutter build ios-framework失败;
实在是没什么头绪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants