Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8450181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:54:08+00:00 2026-06-10T10:54:08+00:00

Kindly bear if it is a very basic question. I tried to convert CFStringRef

  • 0

Kindly bear if it is a very basic question. I tried to convert CFStringRef to NSString using __bridge, as i have enabled ARC.

mydevUUIDString = CFUUIDCreateString(NULL, peripheral.UUID);
 NSString *temp = (__bridge NSString *) devUUIDString;

I’m still getting the following error:

 Incompatible type casting 'CFStringRef' (aka 'const struct __CFString  **) to 'NSString' with _bridge cast.

Kindly advice, how to resolve this issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:54:10+00:00Added an answer on June 10, 2026 at 10:54 am

    I think the problem is that when you create mydevUUIDString, you create it as a pointer to a CFStringRef. For example, when I enter the following code, Xcode gives me no errors:

    CFStringRef mydevUUIDString = NULL;
    NSString *temp = (__bridge NSString *)(mydevUUIDString); 
    

    However, when I enter this code (which is most likely what you’ve done):

    CFStringRef *mydevUUIDString = NULL;
    NSString *temp = (__bridge NSString *)(mydevUUIDString);
    

    I get the same error you get:

    Incompatible type casting ‘CFStringRef’ (aka ‘const struct __CFString **) to ‘NSString’ with _bridge cast.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

kindly excuse if my question is very basic. I am using Xcode 4.3.3, and
Kindly bare if the question is very basic. ldd command displays the dependent libraries
New to iOS, kindly bare if the question is very basic? When I press
I am new to using XPath and this may be a basic question. Kindly
Previous question linky: MySQL Left Joins Very kindly we got the following code working:
Apologies for having to ask a similar question (helped very kindly by (Steffen Opel).
I am new to programming to kindly bear me. I using c sharp, .net
This is my first time here and I am a beginner so kindly bear
I am new to shell scripting. so kindly bear with me if my doubt
Kindly point out if i have missed something? I have a project with type

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.