Xcode how to exclude FOLDERS from compilation?
From looking at the post you link to. Here is how you do it:
Go to Build Settings.
Press the plus button and select "Add User-Defined settings"
- Give the new field the name of
EXCLUDED_SOURCE_FILE_NAMES
.
- Add the path to the folder:
<Path>/FolderToIgnore/*
. The asterisk denotes all the file in the folder.
That should do it.
Note: Make sure you add this to the right target.
Xcode - exclude files in a custom configuration - better way?
See http://lists.apple.com/archives/xcode-users/2009/Jun/msg00153.html
The trick is to define EXCLUDED_SOURCE_FILE_NAMES in the configuration you want to exclude the files from, and set the value of that custom build setting to a list of the file names (or a pattern that matches those, and only those, file names).
Xcode building for iOS Simulator, but linking in an object file built for iOS, for architecture 'arm64'
Basically, you have to exclude arm64
for the simulator architecture, both from your project and the Pod project.
To do that, navigate to Build Settings of your project and add Any iOS Simulator SDK with value
arm64
inside Excluded Architecture.
OR
If you are using custom
XCConfig
files, you can simply add this line for excluding simulator architecture.EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64
Then
You have to do the same for the Pod project until all the Cocoa pod vendors are done adding following in their Podspec.
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }You can manually add the Excluded Architecture in your Pod project's Build Settings, but it will be overwritten when you
usepod install
.In place of this, you can add this snippet in your
Podfile
. It will write the necessary Build Settings every time you runpod install
.post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
Related Topics
Adding Animation to Tabviews in Swiftui When Switching Between Tabs
How to Restrict an Enum to Certain Cases of Another Enum
Firebase Crashlytics Not Showing Crash Report in Console Dashboard Swift
How to Split a String into a [String] and Not [Substring]
How to Trigger Xcode's 'Update to Latest Package Versions' from Command Line
Swift Unit Testing with Xctassertthrows Analogue
"Raw Value for Enum Case Is Not Unique" for Swift Enum with Float Raw Values
Nssortdescriptor Sorting Using Nsdate in Swift
Changing Tab Bar Color (Swift)
Explit Conformance to Codable Removes Memberwise Initializer Generation on Structs
Xcode 7 Run on MAC Osx 10.10 Yosemite
How to Pass a Class and Method to Create an Instance of a Class
Iwatch: Wkinterfacelabel How to Stop Text from Being Cut Off with "..." at The End of a Label