How to get bundle ID?

前端 未结 7 2097
太阳男子
太阳男子 2020-12-29 01:19

I am working on getting the facebook API working for iOS, and the FB registration page requires the Bundle ID of the project. How can I get this information? I read someth

相关标签:
7条回答
  • 2020-12-29 02:15

    If you are trying to get it programmatically , you can use below line of code :

    objective C

    NSString *bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];
    

    Swift 3.0 :

    let bundleIdentifier =  Bundle.main.bundleIdentifier
    

    It will work for both iOS and Mac apps Good luck..

    0 讨论(0)
提交回复
热议问题