I have a .framework which I want to distribute through Cocoapods. 
I want to distribute only the binary so the implementation is hidden from users.
Now I am facing an issue where when I try to upload an app using my .framework I get an error "ERROR: ITMS-90087: The executable ... contains unsupported architectures '[x86_64]'".
This is understandable since this binary I distribute contains all the architectures for devices and simulators.
Any ideas on how to work around that without asking users to do any additional steps?
            Asked
            
        
        
            Active
            
        
            Viewed 95 times
        
    0
            
            
         
    
    
        gop
        
- 2,150
- 5
- 26
- 54
1 Answers
1
            You need to strip simulator architectures before uploading the app.
Here's an excellent script to do so.
 
    
    
        Matteo Pacini
        
- 21,796
- 7
- 67
- 74