I am working with Xcode 9 and using Cocoa framework throws this error.
I have tried all possible ways but not able to resolved it.
Asked
Active
Viewed 3,977 times
3

Hemant Solanki
- 894
- 10
- 24
-
https://stackoverflow.com/questions/40110392/required-code-signature-missing-for-a-library – Priya Jun 22 '18 at 05:13
-
@Priya i have tried to delete derived data but its not working.. Thanks for the help. – Hemant Solanki Jun 22 '18 at 05:19
-
set provisioning profile – SPatel Jun 22 '18 at 06:20
-
is this label from a pod? – Rico Crescenzio Jun 22 '18 at 13:23
-
@SPatel is this related to this ? i have automatically managed provisioning profile. – Hemant Solanki Jun 26 '18 at 08:29
-
@RicoCrescenzio yes : https://github.com/kirualex/KAProgressLabel – Hemant Solanki Jun 26 '18 at 08:30
-
@HemantSolanki can you archive your project? – SPatel Jun 26 '18 at 10:45
-
@SPatel Yes bro – Hemant Solanki Jun 27 '18 at 05:48
-
@RicoCrescenzio i have added your code in pod file but it's not working for me. – Hemant Solanki Jun 27 '18 at 05:49
-
@HemantSolanki this worked for me, maybe you have another issue... run `pod --version` to know which version you have – Rico Crescenzio Jun 27 '18 at 08:46
-
1@HemantSolanki Basically its cocapods bug in 1.5, to resolve this you can downgrade your cocapods version. https://github.com/CocoaPods/CocoaPods/issues/7606 – SPatel Jun 27 '18 at 10:43
3 Answers
4
So, if label is a lib in a pod, you probably are affected by a cocoapods bug; try to add this post_install in your podfile
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings.delete('CODE_SIGNING_ALLOWED')
config.build_settings.delete('CODE_SIGNING_REQUIRED')
end
end
I suggest you to remove all derived data and clean from xcode.
Then, re-install pods with pod install

Rico Crescenzio
- 3,952
- 1
- 14
- 28
2
I had to combine the above two excellent answers (Podfile modification and cocoa pod version 1.4.0) plus another Podfile modification from another thread
My Podfile:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.new_shell_script_build_phase.shell_script = "mkdir -p $PODS_CONFIGURATION_BUILD_DIR/#{target.name}"
target.build_configurations.each do |config|
config.build_settings['CONFIGURATION_BUILD_DIR'] = '$PODS_CONFIGURATION_BUILD_DIR'
config.build_settings.delete('CODE_SIGNING_ALLOWED')
config.build_settings.delete('CODE_SIGNING_REQUIRED')
end
end
end
then
sudo gem uninstall cocoapods
sudo gem install cocoapods -v 1.4.0
Works for me on Xcode 9.4.1

Brett
- 1,647
- 16
- 34
1
It is a problem with Cocoapod version 1.5.0 If you are using this you will get this error.
To remove your current version you could just run:
sudo gem uninstall cocoapods
you can install a specific version of cocoa pods via the following command:
sudo gem install cocoapods -v 1.4.0
Remove Podlock file before the update.

Brett
- 1,647
- 16
- 34

Vinod Radhakrishnan
- 441
- 1
- 6
- 18
-
This was the missing part for me, when combined with Rico's answer it works. – Brett Jul 20 '18 at 01:29