Search code examples
iosxcodemacosexecutableswift4

App installation failed: The application bundle does not contain an executable in Swift Xcode


I am getting this issue while installing application into my iphone 6s plus device.

enter image description here

This is whats happened. Twitter kit was creating a problem. I deleted the POD folder and pod install and pod update TwitterKit. Everything sets up. added twitterkit framework in project. After clean build an build. Everything looks fine. Then i go to install app in device with the cable. I am getting this issue now.

Tried following ways

  • Clean and Build again
  • Deleted DerivedData path ~/Library/Developer/Xcode/DerivedData
  • Deleted the "Executable file" entry from Info.plist and build again
  • Quit Xcode and Reopened
  • Restarted my MacBook also
  • Deleted ~/.itmstransporter in Bin folder
  • In Build Setting 'Enable Bitcode' to No

None of the above solutions make it work. Any help will be appreciated. Thanks


Solution

  • Thanks Ying and Sachin for your help and time. I appreciate that. But I have figured out what went wrong.

    The problem was with TwitterCore.framework in TwitterKit.

    I looked into TwitterKit frameworks in Pods/TwitterKit/iOS/TwitterKit.framework/Info.plist, there was a key 'Executable file' with string value of 'TwitterKit' in it.

    When i go in the same place in TwitterCore Pods/TwitterKit/iOS/TwitterCore.framework/Info.plist, 'Executable file' key was missing. i added it with string 'TwitterCore'.

    Problem solved. :)