Linked Questions

2 votes
1 answer
2k views

In Xcode, when I try to add the Objective C library Common Crypto via a bridging header file in a Swift framework (using #import <CommonCrypto/CommonCrypto.h>), I get an error saying that ...
user3664254's user avatar
0 votes
1 answer
3k views

I have created my own cocoa POD framework in swift, which uses #import CommonCrypto/CommonCrypto.h in Objective C bridging header file, but when I try to use same POD in project, It gives compile ...
Abhijeet Barge's user avatar
212 votes
23 answers
383k views

After updating to the latest version of Xcode at the moment (version 10.0) the project is unable to build because it found some errors regarding some "Command CompileSwift failed with a nonzero ...
Jordi Gámez's user avatar
  • 3,553
150 votes
19 answers
129k views

I want to convert a string like "abc" to an MD5 hash. I want to do this in iOS and Swift. I have tried using the solutions below but they were not working for me: Importing CommonCrypto in a Swift ...
user3606682's user avatar
  • 2,115
151 votes
6 answers
86k views

Is there a way to call C routines from Swift? A lot of iOS / Apple libraries are C only and I'd still like to be able to call those. For example, I'd like to be able to call the objc runtime ...
Blaze's user avatar
  • 1,600
23 votes
4 answers
18k views

I added libsqlite3.0.dylib to my project, and then I tried to import using the following code: import UIKit import sqlite3 class Dataware: NSObject { } But it's giving me this error: No Such ...
PREMKUMAR's user avatar
  • 8,349
19 votes
2 answers
10k views

I have created a Swift Framework that I use in multiple projects. There is an Objectivce-C class that I would like to use in that is difficult to port in straight Swift. Lets say that class is SFTest ...
kailoon's user avatar
  • 2,089
21 votes
9 answers
3k views

I’ve been submitting my app to the App Store for test flight and after build 11, I’ve been getting failures via email from Apple: Non-public API usage: The app contains one or more corrupted binaries....
Zack Shapiro's user avatar
  • 7,048
9 votes
4 answers
6k views

I try to use this new language to start a new project with Some of my old code, I used Libxml2.2 in my old project,so xcode shows "libxml.h/parse.h file not found" after my putting the code in my new ...
Xianng's user avatar
  • 332
22 votes
2 answers
22k views

I'm using this answer to create a module map to create a module for CommonCrypto so I can use it in a framework. Doing this however means that any projects that I use this framework in have access to ...
Rich's user avatar
  • 8,222
8 votes
2 answers
7k views

I'm looking at starting to use Swift in a framework, which uses libz.dylib, but it looks like there's no way to import it from within Swift. I tried import zlib and import libz, which didn't work. ...
Dov's user avatar
  • 16.3k
9 votes
1 answer
14k views

Setup I create a swift framework which include C library (CommonCrypto) and a Objective C file. There is no bridge-header in swift project. So I create a module.modulemap to import CommonCrypto and ...
HungCLo's user avatar
  • 472
4 votes
2 answers
15k views

I have a problem with importing CommonCrypto/CommonCrypto or CommonCrypto/CommonDigest. I need a SHA256 for my Swift code. I found CommonCrypto github site in Cocoapods. https://github.com/...
kimpro's user avatar
  • 349
3 votes
2 answers
10k views

i dont even expect this problem, but it appears. I try to get md5 hash from string in swift. I search about that on SO and assume that i need to import library like that: #import <CommonCrypto/...
Mike's user avatar
  • 195
6 votes
0 answers
3k views

I was trying to use a pod that was written in Obj-C and my project is Swift-only. I got this error include of a non-modular header inside framework module in the import statement of a dependency ...
Amadeu Cavalcante Filho's user avatar

15 30 50 per page