OneSignal-iOS-SDK icon indicating copy to clipboard operation
OneSignal-iOS-SDK copied to clipboard

Xcode 12 Archive Warnings

Open hishak opened this issue 5 years ago • 4 comments

Description:

Running iOS Simulator works (after excluding 'arm64' for for 'Any iOS Simulator SDK'.) in Xcode 12. Working code was untouched from Xcode 11.7. But Archiving in xcode 12 results in multiple warnings that look like this:

DIBlockByRefStruct on DICompositeType is no longer supported

ld: warning: ignoring invalid debug info in /Users/MyName/Library/Developer/Xcode/DerivedData/MyApp-hjxpxqxddowpfjbxwdpqomlzmfuo/Build/Intermediates.noindex/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension.bundle.WjNAQv/06

Environment

  1. Xcode Version 12.0.1 (12A7300)
  2. OneSignal Cocoapods 2.15.3

Steps to Reproduce Issue: (write below this line) -->

  1. Took existing/working xcode 11.7 workspace and opened in xcode 12
  2. Updated to cocoapods 2.15.3
  3. Selected Product/Clean Build Folder
  4. Added 'arm64' to Excluded Architectures/Any iOS Simulator SDK
  5. Selected Product/Clean Build Folder. 'Run' works with no errors/warnings in Simulator
  6. Changed Scheme to 'Any iOS Device (arm64)
  7. Select Product/Archive
  8. Get 6 project and same 6 OneSignalNotificationServiceExtension warnings. 12 warnings

Anything else:

If I delete 'derived data' from where xcode/preferences/locations is pointing, it just adds it back on next 'Archive'.

hishak avatar Oct 03 '20 22:10 hishak

I am not able to reproduce this issue. I believe these warnings are innocuous, but they appear to be related to this comment on the Apple Dev forums.

@hishak Are these warnings preventing releasing the app?

emawby avatar Oct 16 '20 23:10 emawby

Can still release app. All 12 warnings have derived data...OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension.bundle in common. Would be nice if they can somehow be cleared.

hishak avatar Oct 17 '20 23:10 hishak

I will keep trying to reproduce this, but the warnings should not cause any issues in your released app. I understand it is annoying to have warnings in your project though.

emawby avatar Oct 19 '20 17:10 emawby

Confirming it does NOT affect releasing the app. It started when moving from xcode 11.7 to 12 GM and adding 'excluded architectures' to get simulator tests to work (as in 'Steps to Reproduce' above).

hishak avatar Oct 19 '20 18:10 hishak

Closing due to inactivity

emawby avatar Mar 23 '23 17:03 emawby