jpush / jpush/jpush-react-native
Cannot initialize a parameter of type 'id<JPUSHRegisterDelegate>' with an lvalue of type 'AppDelegate *const __strong'
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.4k
- Forks
- 348
- PR merge metrics
- No merged PRs in 30d
Description
你的运行环境
- 插件版本:
- react-native 版本:0.62
期望效果
在Xcode-->TARGETS-->Build Setting-->Apple Clang - Language-->Compile Source As在这个选项中选择 Objective-C++
期望能够正常编译运行
实际效果
之后编译的时候JPush会报这个错:


重现步骤
- ...
- ...
- ...
- ...
Debug logs
Cannot initialize a parameter of type 'id' with an lvalue of type 'AppDelegate *const __strong'
Cannot initialize a parameter of type 'id' with an lvalue of type 'AppDelegate *const __strong'
包括 Android 或 iOS 的日志:
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in Xcode with the Compile Source As setting and reproduce the JPush iOS build errors for JPUSHRegisterDelegate and JPUSHGeofenceDelegate. Check the AppDelegate integration and determine what change allows the project to compile as Objective-C++; done means the reported errors no longer occur.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- objective-c, react-native
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100