dotpay / Mobile-SDK-iOS

Mobile SDK iOS
Academic Free License v3.0
0 stars 1 forks source link

Doesn't compile under Xcode8 #1

Open kubajakowski opened 8 years ago

kubajakowski commented 8 years ago

We've some issues with integrating your SDK in our project. Setup:

Errors from console:

dyld: Library not loaded: @rpath/DotPaySDK.framework/DotPaySDK
  Referenced from: [APP_PATH]
  Reason: no suitable image found.  Did find:
    [APP_PATH]/Frameworks/DotPaySDK.framework/DotPaySDK: required code signature missing for [APP_PATH]/Frameworks/DotPaySDK.framework/DotPaySDK'

    [APP_PATH]/Frameworks/DotPaySDK.framework/DotPaySDK: required code signature missing for [APP_PATH]/Frameworks/DotPaySDK.framework/DotPaySDK'

    [APP_PATH]/Frameworks/DotPaySDK.framework/DotPaySDK: required code signature missing for [APP_PATH]/Frameworks/DotPaySDK.framework/DotPaySDK'
kubajakowski commented 8 years ago

When integrated manually, means not via cocoa pods, I've got this:

dyld: Library not loaded: @rpath/DotPaySDK.framework/DotPaySDK
  Referenced from: [APP_PATH]
  Reason: image not found
dz12 commented 7 years ago

This seems to be an issue in Xcode 8.0 which doesn't compile the project properly. I added the SDK to a Swift 3.0 project in Xcode 8.0 as an embedded library and received the same error.

To get the project with the SDK to run using Xcode 8.0, a "Clean Build" is required each time before running the application. This problem does not occur in previous versions of XCode.

kubajakowski commented 7 years ago

Running after clean build doesn't work for me - same error, even on new empty project.

dropski commented 7 years ago

You have to add framework manually ( not working with cocoapods with swift ):

  1. remove dotpay from pod file
  2. make pod install
  3. clean your project ⇧⌘K and then ⌥⇧⌘K
  4. delete derived data, menu: Window -> Projects select your project and hit Delete button (these are steps for XCode 7.3.1, I don't know is it the same in XCode 8)
  5. download compiled framework https://github.com/dotpay/Mobile-SDK-iOS/releases/download/1.0.3/dotpay_mobile_sdk_ios_1.0.3.zip
  6. add framework to your project (XCode will add it automatically to Linked Frameworks and Libraries in General tab - remove it from there)
  7. in section Embeded Binaries click add button ( + ) and add your framework from list

That's it, it should work.

I have the same issue in XCode 7.3.1 and I've lost a lot of time to figured out.