You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found an interesting crash, and I'm not sure what would be an ideal solution to fix it.
So steps to reproduce:
Generate a project from template
Add function to YourProjectName.swift
func crushFunc() {
print("Let's crash!")
}
Compile the project for target "iOS Example" or "YouProjectNameTests", you don't even need to call a function, it will crash on launch
To fix this, I had to turn on build setting "Always Embed Swift Standard Libraries" -> YES for both targets (Example and Tests), otherwise it will crash on launch. But this fix will generate warnings if user wants to add Pod Dependencies to the project (Debug + Release for Example and Test targets - 4 combined warning when installing cocoapods):
[!] The iOS Example [Debug] target overrides the ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES build setting defined in ../Pods/Target Support Files/Pods-iOS Example/Pods-iOS Example.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the $(inherited)` flag, or
- Remove the build settings from the target.
The text was updated successfully, but these errors were encountered:
Redonckulous problems like this are exactly why I created this project. So now we can go to the jury and say EXACTLY which REPRODUCIBLE steps we did to get into this hole. And then we can learn which step was wrong.
I've found an interesting crash, and I'm not sure what would be an ideal solution to fix it.
So steps to reproduce:
func crushFunc() {
print("Let's crash!")
}
To fix this, I had to turn on build setting "Always Embed Swift Standard Libraries" -> YES for both targets (Example and Tests), otherwise it will crash on launch. But this fix will generate warnings if user wants to add Pod Dependencies to the project (Debug + Release for Example and Test targets - 4 combined warning when installing cocoapods):
[!] The
iOS Example [Debug]
target overrides theALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES
build setting defined in../Pods/Target Support Files/Pods-iOS Example/Pods-iOS Example.debug.xcconfig'. This can lead to problems with the CocoaPods installation - Use the
$(inherited)` flag, or- Remove the build settings from the target.
The text was updated successfully, but these errors were encountered: