jpush / jpush/jpush-react-native
ios lib file path error
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.4k
- Forks
- 348
- PR merge metrics
- No merged PRs in 30d
Description
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch jpush-react-native@2.9.7 for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/jpush-react-native/ios/RCTJPushModule.xcodeproj/project.pbxproj b/node_modules/jpush-react-native/ios/RCTJPushModule.xcodeproj/project.pbxproj
index e45756e..a183b48 100644
--- a/node_modules/jpush-react-native/ios/RCTJPushModule.xcodeproj/project.pbxproj
+++ b/node_modules/jpush-react-native/ios/RCTJPushModule.xcodeproj/project.pbxproj
@@ -7,7 +7,7 @@
objects = {
/* Begin PBXBuildFile section */
- 5AF3669125870DFD00A57061 /* libjpush-ios-3.3.6.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5AF3669025870DFD00A57061 /* libjpush-ios-3.3.6.a */; };
+ 5AF3669125870DFD00A57061 /* libjpush-ios-4.8.1.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5AF3669025870DFD00A57061 /* libjpush-ios-4.8.1.a */; };
5C103CA7236041E7000AD3DA /* RCTJPushEventQueue.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C103CA6236041E7000AD3DA /* RCTJPushEventQueue.m */; };
624386D81E096B8800F69E07 /* RCTJPushModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 624386D41E096B8800F69E07 /* RCTJPushModule.m */; };
/* End PBXBuildFile section */
@@ -25,7 +25,7 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
- 5AF3669025870DFD00A57061 /* libjpush-ios-3.3.6.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "libjpush-ios-3.3.6.a"; path = "RCTJPushModule/libjpush-ios-3.3.6.a"; sourceTree = "<group>"; };
+ 5AF3669025870DFD00A57061 /* libjpush-ios-4.8.1.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = "libjpush-ios-4.8.1.a"; path = "RCTJPushModule/libjpush-ios-4.8.1.a"; sourceTree = "<group>"; };
5C103CA5236041E7000AD3DA /* RCTJPushEventQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTJPushEventQueue.h; sourceTree = "<group>"; };
5C103CA6236041E7000AD3DA /* RCTJPushEventQueue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RCTJPushEventQueue.m; sourceTree = "<group>"; };
624386D31E096B8800F69E07 /* RCTJPushModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RCTJPushModule.h; sourceTree = "<group>"; };
@@ -39,7 +39,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
- 5AF3669125870DFD00A57061 /* libjpush-ios-3.3.6.a in Frameworks */,
+ 5AF3669125870DFD00A57061 /* libjpush-ios-4.8.1.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -49,7 +49,7 @@
5CF8E647231E3A9200B12200 /* Frameworks */ = {
isa = PBXGroup;
children = (
- 5AF3669025870DFD00A57061 /* libjpush-ios-3.3.6.a */,
+ 5AF3669025870DFD00A57061 /* libjpush-ios-4.8.1.a */,
);
name = Frameworks;
sourceTree = "<group>";
diff --git a/node_modules/jpush-react-native/ios/RCTJPushModule.xcodeproj/xcuserdata/liyanyu.xcuserdatad/xcschemes/xcschememanagement.plist b/node_modules/jpush-react-native/ios/RCTJPushModule.xcodeproj/xcuserdata/liyanyu.xcuserdatad/xcschemes/xcschememanagement.plist
new file mode 100644
index 0000000..e5ee247
--- /dev/null
+++ b/node_modules/jpush-react-native/ios/RCTJPushModule.xcodeproj/xcuserdata/liyanyu.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>SchemeUserState</key>
+ <dict>
+ <key>RCTJPushModule.xcscheme_^#shared#^_</key>
+ <dict>
+ <key>orderHint</key>
+ <integer>32</integer>
+ </dict>
+ </dict>
+</dict>
+</plist>
This issue body was partially generated by patch-package.
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
Inspect ios/RCTJPushModule.xcodeproj/project.pbxproj, focusing on the referenced libjpush-ios archive and its Frameworks build phase. Compare those references with the library files included by the package, then verify that the iOS project builds without a missing-file error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100