Xcode 5.1 and compiling error for architecture x86_64

后端 未结 6 1419
栀梦
栀梦 2021-01-14 00:12

Yesterday I had a project working without problem with Xcode 5. Today, after the update to Xcode 5.1 i have 6 errors and the project is not compiling.

Undefi         


        
相关标签:
6条回答
  • 2021-01-14 00:24

    If you just miss x86_64 architecture (but you have arm64) and it's not possible to get library that includes x86_64 architecture, do the following:

    adding different architectures for different SDKs

    0 讨论(0)
  • 2021-01-14 00:25

    Select app target's Build Settings, select Architectures, click on Other... and remove $(ARCHS_STANDARD) and add $(ARCHS_STANDARD_32_BIT)

    Below is image for sameIn app Target's -> Build Settings -> Architectures

    Its fix the issue for me.

    0 讨论(0)
  • 2021-01-14 00:25

    In addition to Nikita's answer, you could change the parameter from "i386" to x86_64 to compile the library matching x86_64 architecture. Then the compiling errors will go away.

    0 讨论(0)
  • 2021-01-14 00:31

    i think the paypal library you are using, does not support arm64.

    check this PayPal-iOS-SDK issue-47 for the updated paypal library.

    Edit :- update link for paypal library (with arm64 support)

    0 讨论(0)
  • 2021-01-14 00:34

    I found this task to be difficult myself so I made a video explaining how to remove the arm64 from the valid architectures. Hope it helps!

    https://www.youtube.com/watch?v=d-pJLRy4rVk&feature=youtube_gdata_player

    0 讨论(0)
  • 2021-01-14 00:41

    Go to Targets -> Build Settings -> Linking -> Other Linker Flags Add -ObjC -l"PayPalMobile" -l"Pods-PayPal-iOS-SDK" -l"c++" -framework "AVFoundation" -framework "AudioToolbox" -framework "CoreLocation" -framework "CoreMedia" -framework "MessageUI" -framework "MobileCoreServices" -framework "SystemConfiguration"

    0 讨论(0)
提交回复
热议问题