I'm trying to figure out how a server can work on an iOS device. And I found this fantastic tool.
I'm trying to follow this example. Following these instructions, everything seems to work, but when I open EndToEnd.Xcworkspace, Change scheme to "ClientSide" and build, I get the following error: <unknown>:0: error: missing required module 'CHTTPParser', also report here .
I also saw that a similar error was reported here as well, and seems to have been fixed here, at least in xcode 8.3.1 and 8.3.2 (I use 8.3.3).
In a comment it is written: "remove ServerSide and rerun make", I have tried but the error persists.
Any suggestions ? Which may be the cause of
Missing required module 'CHTTPParser'
#emacos Let me debug it during the weekend.
July, 23, 2017 Fixed in this PR - https://github.com/IBM-Swift/Kitura-Builder-iOS/pull/1
Related
I got a complaint from a client that library i made was throwing an error when they try to import it. Error is saying: "Module compiled with Swift 5.3 cannot be imported by the Swift 5.4 compiler". After some research i found out about ABI, and I understand the cause of this error.
Now I want to test if this solution works before shipping the fix. I downloaded a few older toolchain versions hoping that by switching them I could simulate this kind of situation. Setting the distribution flag for the library, building it with older toolchain and then importing it to a project with newest version of toolchain. However I still get the same error. Im I doing this right? What I am missing?
I was really excited, when JetBrains launched the Project Rider-EAP. First thing I've tried was to get a Xamarin-iOS project to run in Rider-EAP, but it doesn't work out of the box.
Update 1: This issue is now listed as critical bug with fix in EAP 2: https://youtrack.jetbrains.com/issue/RIDER-618
1. Problem (fixed) Projects didn't load with the exception that Xamarin.iOS.targets could not be found.
I fixed this with a simple Symlink:
ln -s /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/ “/Applications/Rider EAP.app/Contents/lib/ReSharperHost/macos-x64/mono/lib/mono/xbuild/”
2. Problem
References are not loaded correctly. Therefore the whole syntax highlighting and everything beyond is broken.
See screenshot: References are not loaded correctly
I get the following error as well:
Error:null: Error initializing task MakeDir: Could not load file or assembly '/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Tasks.dll' or one of its dependencies
Switching the xbuild to mono 4.2.2 removes the error but not solves the problem.
PS: It seams that the references are loaded correctly for Xamarin Android projects.
Basic Xamarin Support like open and build is added with EAP 8 of Project Rider.
More advanced features will come with the next Builds and are tracked here: https://youtrack.jetbrains.com/issue/RIDER-1533
I am trying to start testing my app, and so I enabled a new test target and a Swift file for the testing. Yet when I try to execute the testing I receive error:
IDEBundleInjection.c: Error 3587 loading bundle '/Users/fbartolom/Library/Developer/Xcode/DerivedData/inArrivoHD-ebjdiuuwdpdvchgmpsyqkpvvvyhw/Build/Products/Debug-iphonesimulator/inArrivoHD Tests.xctest
By reading some threads I also recovered the XCTest.framework from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks/ given it was not available in the selection, after locating it with find on the shell as Spotlight reported no results. Yet in so doing I got some missing symbols in the linking phase, so by reading How do I migrate from SenTestingKit/OCUnit to XCTest? I removed it.
I tried clearing the DerivedData folder several times to no avail. I also put code signing to "Don't Code signing" with changing anything.
What should I do?
I think I fixed the issue by followng the advice at:
http://dunghnt.blogspot.it/2014/12/problems-of-migrating-from-sen-test-to.html
The issue was due to incorrectly importing the MacOS test kit. Once I correctly chose the iOS one everything went in order. Perhaps a better error message would be appreciated.
Has anyone else noticed that Xcode 6.3 (6D570) is showing the "Test Succeeded" popup (and displaying the test success sound, if configured) for a failing test when you run the test by itself?
When you run all tests in the file, everything works as expected.
For example, the following assertion fails, but Xcode shows "Test Succeeded".
XCTAssertTrue([queryStringLat isEqualToNumber:expectedLat], #"Expected: %# but got: %#\n", expectedLat, queryStringLat);
The debugger output shows that it failed, Xcode just seems to be getting confused.
Here is the debugger output:
Foo_Tests.m: test failure: -[Foo_Tests test_sendRequestForApp_with_coordinates_validate_that_coordinates_exist] failed: (([queryStringLat isEqualToNumber:expectedLat]) is true) failed - Expected: 37.33233 but got: 0
Has anyone else experienced the same type of thing?
This isn't a huge "bug", but is really annoying when working on tests.
Thanks!
SOLVED!
I received a response from Apple. They said that they could not reproduce the problem, and asked me to remove all plugins and provide them with a complete sample of code that reproduced the issue.
Hmm, PLUGINS, brilliant!
I started to remove plugins, a few at a time, and after a few attempts, the "bug" went away!
I then tracked it down to the MCLog plugin, which I had installed using the Alcatraz package manager in Xcode.
I've also filed an issue with the MCLog author.
If I find out, or figure out, exactly what was causing this issue, I'll post that information here. I find it interesting that MCLog was able to confuse Xcode so it reported "Test Succeeded" upon failures.
I was trying to make a simple app for sudoku solving on GPU with iOS Metal Framework.
I was following instructions from this blog post:
http://memkite.com/blog/2014/12/15/data-parallel-programming-with-metal-and-swift-for-iphoneipad-gpu/
I version my code here:
https://github.com/mateuszbuda/Sudoku
(As of writing this question HEAD is commit c3e06e0)
And I've encountered error when calling
newComputePipelineStateWithFunction
that is while setting up MTLDevice in ViewController (line 95):
https://github.com/mateuszbuda/Sudoku/blob/c3e06e0e1edc724eea20962f32e49f0df8143b7d/Sudoku/ViewController.swift
The error I get is:
Error Domain=AGXMetal Code=1 "Compiler encountered an internal error"
I'm running this on iPhone 6 Plus with iOS 8.1.3
Have someone any idea what can cause the error I get?
You are experiencing one of the unfinished matters in Metal. The reason the error says "internal" is because this is a compiler error, CAUSED by the compiler. Not you. Try this:
Copy all of the code in the ".metal" file that is not compilable.
Delete the .metal file (NOT just the reference).
Remove all of the content of the "DerivedData" folder located at users/yourUser/Library/Developer/Xcode/DerivedData
Create a new .metal file and paste the old code in this new metal file.
Now build and run, you should be good to go.
Anybody who finds this error make sure to send some sort of error report to Apple so that they can properly debug it and fix it in the next release of Xcode.
For anyone having the same problem, I've figured it out.
It just means that there is something wrong with a kernel function. Most probably it doesn't compile, even if you don't see any errors in Xcode.