Manually added swift file to Xcode project error
File found here: https://github.com/tidwall/SwiftWebSocket
Just grabbed WebSocket.swift, put in in project and added libz.1.dylib.
See also questions close to this topic
Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons':'AppIcon20x20'
REPOSTING SINCE I AM GETTING NO ANSWERS ON THIS.
I have been struggling with this issue for over a week. Whenever I try to validate a build or use application loader lately I have been getting this error:
iTunes Store operation failed. Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons':'AppIcon20x20'
Now, the problem is there is no AppIcon20x20 key in my plist.
Nowhere is a 20x20 asset even mentioned in my Plist, as seen by the source code version here :
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleIcons</key> <dict> <key>CFBundlePrimaryIcon</key> <dict> <key>CFBundleIconFiles</key> <array> <string>icon603x.png</string> <string>icon602x.png</string> <string>icon403x.png</string> <string>icon402x.png</string> <string>icon293x.png</string> <string>icon292x.png</string> <string>icon203x.png</string> <string>icon203x.png</string> </array> </dict> </dict> <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSExceptionDomains</key> <dict> <key>https://millsfitnessapparel.myshopify.com/</key> <string></string> </dict> </dict> <key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>$(PRODUCT_NAME)</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> <string>1.0</string> <key>CFBundleVersion</key> <string>1</string> <key>LSRequiresIPhoneOS</key> <true/> <key>UILaunchStoryboardName</key> <string>LaunchScreen</string> <key>UIMainStoryboardFile</key> <string>Main</string> <key>UIRequiredDeviceCapabilities</key> <array> <string>armv7</string> </array> <key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationPortrait</string> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array> </dict> </plist>
And lastly, I have googled the heck out of this topic and they all say to just add CFBundleIcons to your plist, which I did, but it's still throwing the error. I have also done this in versions of this project where there are pods, no pods, workspaces, regular xcproj. files, and even with 1 view controller and just some icons [this latest build].
I have also tried to achive this build in xcode versions 8.1, 8.2, and 8.3, all receiving the same error.
Any help here would be greatly appreciated. These are apps for a client and I am currently late on delivering because of this issue. Thanks.
xCode prompts for unexisted file
When I'm trying to close or do anything with my project, I get the following error:
The file “project.pbxproj” could not be unlocked.
This file is not even exists in my project, or anywhere in my mac. I can't close or do anything, this prompts shows up on every action i'm trying to do.
- All views look like they're selected
Is there a webview.allowsInlineMediaPlayback method in Swift 3 with Cocoa and WebKit?
I have the following code inside Playgrounds in Xcode 8.* with Swift 3.2 and MacOS Sierra 10.12.*. Is there still a webview.allowsInlineMediaPlayback method in Swift 3.2 for Cocoa and WebKit because it doesn't come up with IntelliSense?
import Cocoa import PlaygroundSupport import XCTest import WebKit var myWebView:WebView! = WebView(frame: CGRect(x: 0, y: 0, width: 550, height: 300)) myWebView.mainFrame.loadHTMLString("<html><body><iframe src=\"https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Ffacebook%2Fvideos%2F10153231379946729%2F&width=500&show_text=false&height=280&appId\" width=\"500\" height=\"280\" style=\"border:none;overflow:hidden\" scrolling=\"no\" frameborder=\"0\" allowTransparency=\"true\"></iframe></body></html>", baseURL: Bundle.main.bundleURL) PlaygroundPage.current.liveView = myWebView PlaygroundPage.current.needsIndefiniteExecution = true
Launch desktop application using Swift 3
Can anyone please share sample code to launch a mac desktop application using swift 3 . Basically I want to open charles web debugging proxy app and read data from the app .
How to do unit testing in Xcode while including a Metal library in the project
I have a library project (A) and a Metal library project (M). M is included into A in the "Copy files" phase. That introduces a build dependency, meaning that I can't build A for the simulator because it tries to build M first, and Metal is not supported on the simulator.
That's fine, but the problem is that A contains some unit tests, and when I try to test the project, I get this error message,
Logic Testing Unavailable. Logic testing on iOS devices is not supported. You can only run logic tests on the Simulator.
But I can't build for the Simulator because of the aforementioned dependency...
I read https://medium.com/the-sup-app/bare-metal-working-with-metal-and-the-simulator-70e085e3a45 -- perhaps this could help me removing the dependency of M in A for the simulator, but I'm trying to do this without Cocoapods, purely in Xcode.
Is there any workaround for this?