diff --git a/lib/cocoapods-binary/Integration.rb b/lib/cocoapods-binary/Integration.rb
index dab6aa7..de431e1 100644
--- a/lib/cocoapods-binary/Integration.rb
+++ b/lib/cocoapods-binary/Integration.rb
@@ -217,7 +217,7 @@ def empty_source_files(spec)
                 end
 
                 # to avoid the warning of missing license
-                spec.attributes_hash["license"] = {}
+                spec.root.attributes_hash["license"] = {}
 
             end