Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't compile under Xcode8 #1

Open
kubajakowski opened this issue Sep 14, 2016 · 4 comments
Open

Doesn't compile under Xcode8 #1

kubajakowski opened this issue Sep 14, 2016 · 4 comments

Comments

@kubajakowski
Copy link

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

  • Xcode8
  • Swift project (2.3)
  • Integrated using Cocoapods

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
Copy link
Author

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
Copy link

dz12 commented Sep 29, 2016

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
Copy link
Author

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

@dropski
Copy link

dropski commented Feb 8, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants