sparrowcode / PermissionsKit

Universal API for request permission and get its statuses.
https://x.com/sparrowcode_ios
MIT License
5.64k stars 462 forks source link

Icons do not show in AR template project #275

Closed noah-z closed 2 years ago

noah-z commented 2 years ago

Describe the bug I'm using SPPermissions in my project which is generated with Xcode Augmented Reality App template and the icons don't show in my project. So I new some empty projects with Augmented Reality App template but the icons don't show either. To Reproduce New a project with Augmented Reality App template (in iOS tab) and add SPPermissions. Add this in viewDidAppear

let permissions: [SPPermissions.Permission] = [.camera, .microphone] let controller = SPPermissions.dialog(permissions) controller.present(on: self)

Smartphone (please complete the following information):

Additional context I tested with the app template, the icons show. I think there may be something wrong with the ar template but I don't know where.

ivanvorobei commented 2 years ago

Weird. I Run with empty AR template, and it work for me. I released 7.0 version some hours ago, try update please to latest.

Screenshot 2021-12-13 at 19 33 12
noah-z commented 2 years ago

I updated to 7.0 and tested again. With SPM, it works fine. But with CocoaPods, still don't show. Could you try via CocoaPods let me know if it's my problem.

Screen Shot 2021-12-14 at 01 29 23
ivanvorobei commented 2 years ago

Confirmed. I think something with bundle, but not sure for now. Checking.

ivanvorobei commented 2 years ago

I don't find any additional detail. Project is same like original empty project. Pods ignoring only images, not Text and other files. Look weird.

xygkevin commented 2 years ago

I have also encountered this problem, there is no problem running the project directly with Xcode, it is not displayed after packaging, I think it is because the resource file is not set correctly.

xygkevin commented 2 years ago

I recommend adding the icon's resource bundle to the project as a separate bundle rather than placing it in Assert as a folder

xygkevin commented 2 years ago

Check out the link below to see if it works or not

https://www.jianshu.com/p/66da0b4585c3

rajaonah-toky commented 2 years ago

I don't find any additional detail. Project is same like original empty project. Pods ignoring only images, not Text and other files. Look weird.

I've got the same issue, and it appears only on testflight

ivanvorobei commented 2 years ago

I clean project and now its with new name. Also I see with AR template all sources work correctly. Let me know if need something else.

Screenshot 2022-04-17 at 15 05 06