Skip to content

Commit

Permalink
Merge pull request prscX#170 from AliRezaBeigy/master
Browse files Browse the repository at this point in the history
Fix Error in "[CP] Copy Pods Resources"
  • Loading branch information
prscX authored Jan 26, 2021
2 parents aaa856c + 35c2998 commit cbbc08e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Example/ios/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
name = "[CP] Copy Pods Resources";
outputPaths = (
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/LaunchScreen.storyboardc",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/LaunchScreen.storyboard",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ColorCollectionViewCell.nib",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EmojiCollectionViewCell.nib",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/icomoon.ttf",
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,17 +253,18 @@ pre_install do |installer|
installer.pod_targets.each do |pod|
if pod.name.start_with?('RNFB')
def pod.build_type;
Pod::Target::BuildType.static_library
Pod::BuildType.static_library
end
end
end
end
```

- If the above doesn't work, try the following and and re-run `pod install`:

As [@react-native-firebase documentation](https://rnfirebase.io/#allow-ios-static-frameworks) you should add following to top of the Podfile for Allow iOS Static Frameworks
```
1. Open .podspec in node_modules/@react-native-firebase/app, auth, firestore (and any other @react-native-firebase libraries you're using)
2. Manually change s.static_framework = false to s.static_framework = true.
$RNFirebaseAsStaticFramework = true
```

## ✨ Credits
Expand Down
10 changes: 5 additions & 5 deletions ios/RNPhotoEditor.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ - (dispatch_queue_t)methodQueue

- (void)doneEditingWithImage:(UIImage *)image {
if (_onDoneEditing == nil) return;

NSError* error;

BOOL isPNG = [_editImagePath.pathExtension.lowercaseString isEqualToString:@"png"];
Expand All @@ -30,9 +30,9 @@ - (void)doneEditingWithImage:(UIImage *)image {
[isPNG ? UIImagePNGRepresentation(image) : UIImageJPEGRepresentation(image, 0.8) writeToFile:path options:NSDataWritingAtomic error:&error];

if (error != nil)
NSLog(@"write error %@", error);
_onDoneEditing(@[]);
NSLog(@"write error %@", error);

_onDoneEditing(@[path]);
}

- (void)canceledEditing {
Expand Down Expand Up @@ -94,7 +94,7 @@ - (void)canceledEditing {

// Invoke Editor
photoEditor.photoEditorDelegate = self;

// The default modal presenting is page sheet in ios 13, not full screen
if (@available(iOS 13, *)) {
[photoEditor setModalPresentationStyle: UIModalPresentationFullScreen];
Expand Down

0 comments on commit cbbc08e

Please sign in to comment.