Code Monkey home page Code Monkey logo

Comments (7)

sauchye avatar sauchye commented on July 30, 2024 2

UMengFeedback

 'UMengFeedback/UMFeedback_iOS_2.3.4/UMengFeedback_SDK/libUMFeedback.a(UMFeedback.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

UMengShare

  • 如果不设置一些字段导致无法跳转到微信
    UMSocialMessageObject *messageObject = [UMSocialMessageObject messageObject];
    UMShareWebpageObject *shareObject = [[UMShareWebpageObject alloc] init];
    shareObject.title = text; 
    shareObject.webpageUrl    = url;
    shareObject.descr = @"";

    NSData *data = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:imageUrl]];
    shareObject.thumbImage = data?data:[ZTYTools getAppIcon];
    //分享消息对象设置分享内容对象
    messageObject.shareObject = shareObject;
    UMSocialPlatformType platformType = UMSocialPlatformType_WechatTimeLine;

    [[UMSocialManager defaultManager] shareToPlatform:platformType
                                        messageObject:messageObject
                                currentViewController:vc completion:^(id data, NSError *error) {      
    }];


facebook
    [FBSDKSettings setAppID:@"xxxx"];
    [[UMSocialManager defaultManager] setPlaform:UMSocialPlatformType_Facebook appKey:@"xxxx " appSecret:nil redirectURL:redirectURL];


from iosdev_notes.

sauchye avatar sauchye commented on July 30, 2024

申请Apple 开发者账号
有些邮箱域名无法注册,🐧邮箱可以

from iosdev_notes.

sauchye avatar sauchye commented on July 30, 2024

 sd_setImageWithURL 无法解析带空格的字符串 导致内存暴涨

from iosdev_notes.

okerivy avatar okerivy commented on July 30, 2024
'UMengFeedback/UMFeedback_iOS_2.3.4/UMengFeedback_SDK/libUMFeedback.a(UMFeedback.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)  

这个怎么解决??

from iosdev_notes.

sauchye avatar sauchye commented on July 30, 2024

@okerivy 您看看是不否开启了 bitcode ,尝试关闭,再查查UMengFeedback路径问题,您不是pod引入吗 o(╯□╰)o

from iosdev_notes.

sauchye avatar sauchye commented on July 30, 2024

PalPay iOS SDK接入流程

1、进入官网开发者教程https://developer.paypal.com/

2、注册美区的PayPal账户账号

https://developer.paypal.com/developer/applications/

3、配置live和sandbox key、Webhooks url地址
jietu20190219-155005

4、SDK集成

pod 'PayPal-iOS-SDK'

#import "PayPalMobile.h"

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
//// sandboxString  productionString key 
	    [PayPalMobile initializeWithClientIdsForEnvironments:@{PayPalEnvironmentProduction: productionString,
                                                           PayPalEnvironmentSandbox: sandboxString}];

}

到对应的控制器集成

#import <PayPalMobile.h>

@Property (nonatomic, strong, readwrite) PayPalConfiguration *payPalConfig;

- (void)configPayPal{
    _payPalConfig = [[PayPalConfiguration alloc] init];
    _payPalConfig.acceptCreditCards = NO;
    _payPalConfig.merchantName = @"SAUCHYE INC";////商家用户名
    _payPalConfig.merchantPrivacyPolicyURL = [NSURL URLWithString:@"https://www.sauchye.com"];
    _payPalConfig.merchantUserAgreementURL = [NSURL URLWithString:@"https://www.sauchye.com"];
    _payPalConfig.languageOrLocale = [[NSBundle mainBundle] preferredLocalizations].firstObject;
    //[NSLocale preferredLanguages][0];
    _payPalConfig.payPalShippingAddressOption = PayPalShippingAddressOptionNone;
    NSLog(@"PayPal iOS SDK version: %@", [PayPalMobile libraryVersion]);
    [PayPalMobile preconnectWithEnvironment:PayPalEnvironmentProduction];
}

创建订单

- (void)presentPayPal{
    NSString *currency = @"USD";
    PayPalItem *item = [PayPalItem itemWithName:merchantName
                                   withQuantity:1
                                      withPrice:[NSDecimalNumber decimalNumberWithString:self.price]
                                   withCurrency:currency
                                        withSku:@"shoxot goods"];
    NSArray *items = @[item];
    NSDecimalNumber *subtotal = [PayPalItem totalPriceForItems:items];
    
    PayPalPayment *payment   = [[PayPalPayment alloc] init];
    payment.amount           = subtotal;
    payment.currencyCode     = currency;
    payment.shortDescription = merchantName;
    payment.items            = items;
    payment.invoiceNumber    = self.orderId;
    payment.intent           = PayPalPaymentIntentSale;
    PayPalPaymentViewController *paymentViewController = [[PayPalPaymentViewController alloc] initWithPayment:payment
                                                                                                configuration:self.payPalConfig
                                                                                                     delegate:self];
    
    if (!payment.processable) {
        // This particular payment will always be processable. If, for
        // example, the amount was negative or the shortDescription was
        // empty, this payment wouldn't be processable, and you'd want
        // to handle that here.
    }
    
    if (!paymentViewController) {
        return;
    }
    [self.viewController presentViewController:paymentViewController animated:YES completion:nil];
}

支付完成回调逻辑处理

#pragma mark - PayPalPaymentDelegate
- (void)payPalPaymentDidCancel:(PayPalPaymentViewController *)paymentViewController {
    NSLog(@"payPalPaymentDidCancel");
    [self.viewController dismissViewControllerAnimated:YES completion:nil];
}


- (void)payPalPaymentViewController:(nonnull PayPalPaymentViewController *)paymentViewController
                 didCompletePayment:(nonnull PayPalPayment *)completedPayment{
    NSLog(@"payPalPaymentViewController");
}


//// 支付完成 与服务器校验
- (void)payPalPaymentViewController:(nonnull PayPalPaymentViewController *)paymentViewController
                willCompletePayment:(nonnull PayPalPayment *)completedPayment
                    completionBlock:(nonnull PayPalPaymentDelegateCompletionBlock)completionBlock{
    [self.viewController dismissViewControllerAnimated:YES completion:nil];
    NSLog(@"payPalPaymentViewController  willCompletePayment:\n\n%@\n\nSend this to your server for confirmation and fulfillment.", completedPayment.confirmation);
    NSLog(@"paypal pay success");    
    NSDictionary *confirmation   = completedPayment.confirmation;
    NSString *currencyCode       = completedPayment.currencyCode;
    NSDecimalNumber *amount      = completedPayment.amount;
    NSDictionary *response       = [confirmation objectForKey:@"response"];
    NSString *ppOrderId          = [response objectForKey:@"id"];
    NSDictionary *parameters = @{@"amount":amount,
                                 @"currency_code":currencyCode,
                                 @"recharge_sn":ppOrderId,
                                 @"order_sn":self.orderId,
                                 @"create_time":[response objectForKey:@"create_time"]
                                 };
  
}

from iosdev_notes.

sauchye avatar sauchye commented on July 30, 2024
[✓] Flutter (Channel beta, v1.1.8, on Mac OS X 10.14.3 18D109, locale zh-Hans-US)
    • Flutter version 1.1.8 at /Users/sauchye/Workspace/config/flutter
    • Framework revision 985ccb6d14 (7 weeks ago), 2019-01-08 13:45:55 -0800
    • Engine revision 90fcaff900
    • Dart version 2.1.1 (build 2.1.1-dev.0.1 ec86471ccc)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/sauchye/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 31.3.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[!] IntelliJ IDEA Ultimate Edition (version 2018.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.

flutter/flutter#11940

from iosdev_notes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.