Questions tagged [objc-bridging-header]

51 questions
1
vote
2 answers

Access Objective-C Category's Property (Associated Reference) in Swift 3's Value Type

In my Objective-C class's .h file, I have created a Category for NSIndexPath like this: @interface NSIndexPath (YVTableView) @property (nonatomic, assign) NSInteger subRow; @end and in that class's .m file, I have implemented that like: static…
1
vote
1 answer

Error when trying to integrate the Linkedin SDK into my Swift project

I am trying to integrate the Linkedin SDK into my Swift project. I am using this cocoapod and this is the error I'm getting. Use of unresolved identifier 'LinkedinSwiftHelper' My podfile: use_frameworks! target 'JobRewards' do pod 'LinkedinSwift',…
JP Aquino
  • 3,946
  • 1
  • 23
  • 25
0
votes
0 answers

Getting Crash - “Could not cast value of type 'NSTaggedPointerString' (0x10ec9b560) to 'NSDictionary' (0x10ec9b880)”

Am getting crash for data type conversion mismatch. how to change data type in swift to rectify this issue? var Createsections: [[String:Any]] = [[String:Any]]() var TableData: [[String:Any]] = [[String:Any]]() for item in TableData { if let…
0
votes
1 answer

Importing modulename-Swift.h file to ObjC .h file

Is it possible to import the modulename-Swift.h file to another .h file, so that the test target also would compile? Currently, I was importing the modulename-Swift.h in the one of the headers of the app's target, however, the test target was not…
0
votes
1 answer

Can't access swift class from Objective-C while the project is in Swift

I have a swift project and my initial UIViewController is a swift class. From the initial ViewController, I added a new Viewcontroller in my storyboard and set an objective-c class (FirstViewController.h) for it. In my project, I have another swift…
Nuibb
  • 1,800
  • 2
  • 22
  • 36
0
votes
0 answers

Semantic issue for AuthChallengeDisposition enum in Swift-generated bridging header

I'm adding URLSessionDelegate protocol conformance to one of my Swift classes (called SearchViewController), and I'm implementing urlSession(_:task:didReceive:completionHandler:). The signature of this method includes the type…
0
votes
1 answer

Objc class doesn't recognize Swift class

I could not import swift class inside my objective c project following these steps: Enviroment: Xcode: 10.0 Swift: 4.2 1 - Ctrl+N to generate a new swift file 2 - Selected “Create Bridging Header” from xcode question 3 - On Target -> build settings,…
Jhonsore
  • 1,757
  • 1
  • 13
  • 19
0
votes
1 answer

YTPlayerView not found issue

Currently i have kinda strange issue with YTPLayerView. I already have a project that contains both Objective-C and Swift codes. So, I need to use Youtube Player in Objective-c. The problem is that when i declare my Objective-c View Controller in…
0
votes
1 answer

Segue from Obj-c to swift can't find property

i'm attempting to passing an int from objective-c file to swift. The steps that I have taken do indeed segue, however sadly it does not pass the int across due to the following error: Property 'productKey' not found on object of type…
Matt Hammond
  • 765
  • 1
  • 7
  • 25
0
votes
0 answers

Is bridging header file automatically generated while adding a Swift file to an objective-C project?

I added a swift class in my existing Objective-C project and was trying to import bridging header file of the form #import in some existing obj-c classes. But I got error that the header file is not found. I…
0
votes
1 answer

How to use Objective C bridging header in swift framework?

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 error - Include of non-modular header inside…
0
votes
1 answer

Not able to access the optional delegate of swift class into objective c project

I am using swift pod file into my objective c project and when I tried to set the delegate of the swift class , I see no where the data source and delegate. I was not able to access it. Can anyone tell me the reason why I was not able to access…
0
votes
1 answer

import swift linked objc class in swift

The project I work currently has Both Objective-C and Swift linked with the bridging header and everything works fine. but in one case where this particular viewController.h which is in Obj-c has swift imported already. when I try to access this…
Raghav7890
  • 458
  • 3
  • 13
0
votes
2 answers

Not able to add Objective C Bridging Header in Swift project

I am using Xcode 8.2.1 and Swift 3. I am trying to add Objective C Bridging Header. Though I have created the .h file there is no row in the Build Settings to add the Bridging Header I am stuck on this for hours. Any help in the right direction…
MrDank
  • 2,020
  • 2
  • 17
  • 39