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

Framework Issues #48

Closed
amosavian opened this issue Nov 23, 2016 · 16 comments
Closed

Framework Issues #48

amosavian opened this issue Nov 23, 2016 · 16 comments
Labels
Milestone

Comments

@amosavian
Copy link
Contributor

Hi,

I wanted to add framework for dynamic linking to my project, it doesn't show iOS framework in Embedded Binaries and even when I fixed it, I had issues for resources.bundle file.

Interestingly, I had not these issues with UnrarKit, while I get UnrarKit/Classes/UnrarKit.h:12:9: 'Cocoa/Cocoa.h' file not found error.

@abbeycode
Copy link
Owner

It's complaining about not finding Cocoa.h since that's a Mac header. For cross-platform projects I usually ifdef Cocoa for Mac and UIKit for iOS. From UnrarKit:

#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
#else
#import <Cocoa/Cocoa.h>
#endif

@abbeycode
Copy link
Owner

Are you still having this problem?

@amosavian
Copy link
Contributor Author

I didn't try again. Falled back to manual inclusion. I'll try and inform you

@amosavian
Copy link
Contributor Author

@abbeycode I solved the problem with UnrarKit by adding new line to UnrarKit.h umbrella header:

#import <TargetConditionals.h> //  <-- THIS LINE ADDED

#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
#else
#import <Cocoa/Cocoa.h>
#endif

I will tell about UnzipKit if I overcome the problem

@amosavian
Copy link
Contributor Author

amosavian commented Dec 12, 2016

I got this error when tried to upload to iTunesConnect, using UnrarKit.framework in project:

ERROR ITMS-90060: "This bundle is invalid. The value for key CFBundleShortVersionString '2.8-beta' in the Info.plist file must be a period-separated list of at most three non-negative integers."

There is also some other malformations in framework 😂 but as far as it works there is no problem.

@abbeycode
Copy link
Owner

Interesting. If you're working off of a fork, just update the Info.plist not to be a beta (just 2.8).

@amosavian
Copy link
Contributor Author

I did and now is uploading the binary \o/

@abbeycode
Copy link
Owner

abbeycode commented Dec 12, 2016

How are you producing the framework? Are you using Carthage?

@amosavian
Copy link
Contributor Author

Nope, simply dragged .xcodeproj into my project and added it to Embedded Binary section.
Carthage automatically rectifies some common malformations and universal binaries. But I'm more convenient with this style

@abbeycode
Copy link
Owner

I was reading back through this thread, and I couldn't tell if UnzipKit is being affected, or if this only affected UnrarKit. Is there any work left to do on UnzipKit related to using it as a dynamic framework?

@amosavian
Copy link
Contributor Author

I didn't tried to figure out how to resolve the problem with UnzipKit yet, I'll try after new year eve.

@amosavian
Copy link
Contributor Author

I tried UnzipKit framework again, now the problem is UnzipKit-iOS target is not enlisted in Embedded Binaries section in project settings when I want to add it while I can see UnzipKit macOS in the list. I tried to solve problem by changing some project settings without success.
I supposedly has to recreate iOS target from scratch.

@abbeycode
Copy link
Owner

Can you try the issue48 branch? I think it should work for you now. If so, I'll cut a new release.

@amosavian
Copy link
Contributor Author

@abbeycode tested and it works perfectly

@abbeycode
Copy link
Owner

This has been merged to master and is included in v1.8.3. Thanks again for pointing it out!

@amosavian
Copy link
Contributor Author

Thank you very much

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

No branches or pull requests

2 participants