8.0 ios build issue

未关闭
#3,841 14 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
objective-c, react-native

调研方向

使用 React Native 0.81.5 和 React Native UI Lib 8.0.0 复现 iOS 构建,然后检查 lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m 的第 152-153 行附近。检查 issue 中显示的 podspec 依赖项,并验证 Xcode 构建是否能够在没有 RCTAppDelegate 错误的情况下完成。

由索引模型根据 Issue 内容生成。

描述

bug

Description

just build using xcode for ios. the xcode tell that

 
/node_modules/react-native-ui-lib/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m:152:5: Use of undeclared identifier 'RCTAppDelegate'

/node_modules/react-native-ui-lib/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m:152:21: Use of undeclared identifier 'appDelegate'

/node_modules/react-native-ui-lib/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m:152:51: Expected expression

/node_modules/react-native-ui-lib/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m:152:36: Use of undeclared identifier 'RCTAppDelegate'

/node_modules/react-native-ui-lib/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m:152:53: Missing '[' at start of message send expression

 /node_modules/react-native-ui-lib/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m:152:94: Expected ']'

 /node_modules/react-native-ui-lib/lib/ios/reactnativeuilib/keyboardinput/rctcustomInputcontroller/RCTCustomInputControllerTemp.m:153:19: Use of undeclared identifier 'appDelegate'


Steps to reproduce

just build using xcode

More Info

I think we need to add s.dependency 'React-RCTAppDelegate' into the pod file . like below

Code snippet
require 'json'

package = JSON.parse(File.read(File.join(__dir__, 'lib/package.json')))

Pod::Spec.new do |s|
  s.name         = "ReactNativeUiLib"
  s.version      = package['version']
  s.summary      = "React Native UI Library"

  s.authors      = "Wix.com"
  s.homepage     = package['homepage']
  s.license      = package['license']
  s.platforms    = { :ios => "9.0", :tvos => "9.2" }

  s.module_name  = 'ReactNativeUiLib'

  s.source       = { :git => "https://github.com/wix/react-native-ui-lib.git", :tag => "#{s.version}" }
  s.source_files  = "lib/ios/**/*.{h,m}"

  s.dependency 'React'
  s.dependency 'React-RCTAppDelegate'
  s.frameworks = 'UIKit'
end


Environment
  • React Native version: 0.81.5
  • React Native UI Lib version: 8.0.0
Affected platforms
  • Android
  • iOS
  • Web
主要语言
TypeScript
星标
7.2k
派生
749
平均合并
2 天 4 小时
30 天内合并 PR
4

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

wix/react-native-ui-lib 的其他 Issue

查看 wix/react-native-ui-lib 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。