Category Archives: How to Fix

iOS clang: error: linker command failed with exit code 1 (use -v to see invocation)

Clang: error: Linker Command failed with exit code 1 (use-v to see Invocation) will occur if the project is not built properly due to errors in XCode.

This error is usually caused by referring to duplicate files, but a project refers to so many files, how do you find it?If you click on the error message, XCode will not display the details of the error. Is this a bug in XCode?

To see what caused the error, click error – right – and select Reveal in Log

At this point, I finally saw the reason for the error.

Duplicate symbol XXX, the truth is out, the project refers to two ASIClient, re-modify the project, successfully passed!

NBU recovery report error socket read failed: errno = 119-System call timed out

Problem description: when using NBU to restore DB2 database, because the file System type is EXT3, so the table space allocation took a lot of time, NBU reported Error
Error BPBRM (pid=38928526) socket read failed: errno = 199-system call out
..
Restore errno (2850)
Problem fixed:
adds CLIENT_READ_TIMEOUT to the bp.conf file in Master Server
Resources:
https://www.veritas.com/support/en_US/article.100014724

ubuntu executes apt-get update and reports Failed to fetch/replace Ali source

Copyright Notice: This article is the original article of the blogger, and follows CC 4.0 BY-SA copyright agreement. Please attach the link of the original text and this statement.

the article links: https://blog.csdn.net/feiniao8651/article/details/60332535

in the ubuntu perform sudo apt to get the update, often an error:
 
Err http://security.ubuntu.com precise-security InRelease
Err, http://security.ubuntu.com precise ws-security the GPG
Temporary failure resolving ‘security.ubuntu.com’
Err http://cn.archive.ubuntu.com precise InRelease
Err http://cn.archive.ubuntu.com precise-updates InRelease
Err http://cn.archive.ubuntu.com precise-backports InRelease
Err, http://cn.archive.ubuntu.com precise the GPG
Temporary failure resolving ‘cn.archive.ubuntu.com’
Err http://cn.archive.ubuntu.com precise – updates the GPG
Temporary failure Resolving the ‘cn.archive.ubuntu.com’
Err http://cn.archive.ubuntu.com precise – backports the GPG
Temporary failure resolving ‘cn.archive.ubuntu.com’
Reading package lists… The Done
W: Failed to fetch HTTP:// http://cn.archive.ubuntu.com/ubuntu/dists/precise/InRelease
W: Failed to fetch HTTP:// http://cn.archive.ubuntu.com/ubuntu/dists/precise-updates/InRelease
W: Failed to fetch HTTP:// http://cn.archive.ubuntu.com/ubuntu/dists/precise-backports/InRelease
W: Failed to fetch HTTP:// http://security.ubuntu.com/ubuntu/dists/precise-security/InRelease
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/precise-security/Release.gpg Temporary failure resolving ‘security.ubuntu.com’
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/precise/Release.gpg Temporary failure resolving ‘cn.archive.ubuntu.com’
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/precise-updates/Release.gpg Temporary failure resolving ‘cn.archive.ubuntu.com’
W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/precise-backports/Release.gpg Temporary failure resolving ‘cn.archive.ubuntu.com’
W: Some index files failed to download. They have been ignored, or old ones used instead.12345678910111213141516171819202122232425262728293031323334
It is generally recommended to use a domestic mirror source, such as 163 or aliyun’s mirror server
to add the following text to the /etc/apt/ source.list file
 
Deb http://mirrors.aliyun.com/ubuntu/ raring main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ raring ws-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ raring – updates the main restricted universe multiverse
deb raring – http://mirrors.aliyun.com/ubuntu/ programs main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ raring – backports main restricted universe multiverse
deb – SRC http://mirrors.aliyun.com/ubuntu/ raring main restricted universe multiverse
deb – SRC http://mirrors.aliyun.com/ubuntu/ raring ws-security main restricted universe multiverse
deb – SRC http://mirrors.aliyun.com/ubuntu/ raring – updates the main restricted universe multiverse
deb – SRC http://mirrors.aliyun.com/ubuntu/ raring – programs main restricted universe multiverse
deb – SRC http://mirrors.aliyun.com/ubuntu/ raring – backports main restricted universe multiverse, 12345678910
However, executing sudo Apt-get update still gives an error. The problem is that DNS is not properly configured.
solution:
 
sudo vi /etc/resolv.conf1
add
 
Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS file by HAND — YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1

nameserver 223.5.5.5
nameserver 223.6.6.6
Then the SUdo Apt-get Update will work.
Reference:
ubuntu apt-get update failed to resolve.
Ubuntu operating system “Failed to fetch” error solution
docker Ubuntu container to replace the alibaba source
— — —
copyright notice: this article is the original article of CSDN blogger “feiniao8651”, following CC 4.0 by-sa copyright agreement, reprint please attach the original source link and this statement.
the original link: https://blog.csdn.net/feiniao8651/article/details/60332535

command/usr/bin/codesign failed with exit code 1- code sign error

I’ve now spent 3 hours searching for the error mentioned above:

command /usr/bin/codesign failed, exit code 1

Here’s what I’ve done to try and fix this:
Set the bundle identifier to com.server. code signing to “any Iphone OS device” set the code signing identity to my distribution identity. The error only happens when I try to set it on my device and everything works fine on the emulator. Do you have any suggestions? Thank you very much in advance! I have the exact same error and have tried everything, including the suggestions elsewhere on this page. My problem is that in Keychain Access, the actual Apple WWDR certificate is marked as “always trusted”. It needs to be “system default”. This also applies to your Development Certificates and Issuing Certificates. If either of them is incorrectly set to “Always Trusted”, this will obviously cause the problem. So, in Keychain Access, click Apple Worldwide Developer Relations Certificate Authority Certificate, select Get Info. then, expand the Trust setting, and for ” When using this certificate:” combo box, select “System defaults”.
Sigh:For those who insist on vetoing this answer, I’m not saying this is the only solution to the problem. It’s a solution. It may not work for you.

[Git & GitHub] Solution: error: failed to push some refs to’https://github.com/xxxx.git’

Problem description: after creating the repository remotely on github, the following error occurs while submitting a local file using gitbash
$ git push -u origin master
fatal: HttpRequestException encountered.
An error occurred while sending the request.
Username for ‘https://github.com’: bluetata
To https://github.com/bluetata/Javascript-AngularJS.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to ‘https://github.com/bluetata/Javascript-AngularJS.git’
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: ‘git pull … ‘) before pushing again.
hint: See the ‘Note about fast-forwards’ in ‘git push –help’ for details.
Problem analysis: I created the empty repository on Github first, checked the create READme.md file, but did not pull it locally when Using Gitbash. Then use gitbash to submit the local file to the warehouse, an error occurred while pushing.
Solution: error message can be seen in the local and remote matching is not complete, also found on the Internet, summed up for the local warehouse and remote warehouse conflict caused by.
The following solutions are summarized:
1: Pull the remote warehouse to the local warehouse before push
$git pull origin master #git pull –rebase origin master
$git push-u origin master
2: force push local warehouse to remote (this case does not merge, remote files may be lost after force push is not recommended)
$ git push -u origin master -f
3: to avoid conflict resolution, temporarily submit the local file to the remote branch
$git branch [name]
# after creating the branch, then push
$git push-u origin [name]
Note: This article was originally published in ‘bluetata’ on blog.csdn.net.

The computer can’t turn on ERROR: NO BOOT DISK HAS BEEN DETECTED OR THE DISK HAS FAILED

Let’s see if the hard drive wire is connected. Two connecting wires, one big and one small


2. After entering through PE software, check whether there is a disk symbol
3. Press DEL to enter the motherboard 2113, go to Authentication → Secure Boot→ turn Enabled (as shown in Figure 52611) to Disabled (as shown in Figure 2) → F10 save and 4102 exit. (1 1653 must be saved and quit)
 
Figure 1
 

 
Figure 2

 
4. Press DEL to enter the motherboard and find Boot Options → Launch CSM → change Never to Always (as shown in Figure 3) → F10 save and exit.     
(Be sure to save and exit)
 
Figure 3

 
5. Press DEL to enter this time, adjust USB or CD to start and it will come out → F10 save and exit. (Be sure to save and exit)
 

ajax error 400 (Failed to load resource: the server responded with a status of 400 (Bad Request))

Failed to load resource: the server responded with a status of 400 (Bad Request)
http://localhost:8081/ezsonar/npm/appportmanage/saveEditAppPortManage
The reason for the error code 400: basically it is caused by the incorrect data format passed by the front desk.
But how this format is incorrect depends on how you understand how the data is transmitted.
For example, if the back end parameter is an int, but the front end passes a NULL, then the type cannot be cast, so 400.
Now for my reason, this is a bit weird: it’s because the backend model’s unreferenced constructor was overridden by the referenced constructor and reported an error of 400.
Write down the reason for my code error 400:
Foreground code:

	$.ajax({
		url: SUBSYSTEM_APP_NAME + "appportmanage/saveEditAppPortManage",
		type: "post",
		contentType: "application/json; charset=utf-8",
		data: JSON.stringify(data),
		dataType: "json",
		success: function (data) {
			if (data.success) {
				GMS.success(data.msg);
			} else {
				GMS.error(data.msg, 3000);
			}
		}
	});

First of all, the properties of the data object encapsulated in the foreground are consistent with the properties of the Java model in the background, which is not the cause of the problem. Don’t worry.
Notice, for those of you who reported 400 wrong, I’m saying that the front and back of all of my attributes are OK, but you reported 400 wrong, are you sure that your front and back objects are the same parameter types for all of your attributes?For example: a property is List&lt in front and background; String> ?Boolean?And so on and so forth. This is the most basic error gesture.
You’d better check the problem first and then continue to see if it is the same as the original cause of my error.
However, the Ajax type and various parameters can be matched with the background, which is not the cause of the problem.
Background code:

	@RequestMapping(value = "/saveEditAppPortManage")
	public @ResponseBody JsonResult saveEditRenameDetail (@RequestBody Appportmanage detail) {
		LOG.debug("---------------AppportmanageController:saveEditAppPortManage---------------");
		LOG.debug("---------------detail:" + detail + "---------------");

		return appportmanageService.saveEditAppPortManage(detail);
	}

Second, the front and back urls are also aligned, as are the attributes of the model. Then again, spring MVC’s annotation tag is fine.
The original code was OK. Or the above code, the program can work normally, run no problem.
But I made the following changes:
Modify the data model: the original model Java file is some of the properties and simple getter and setter, s then I due to business needs, to the original model to add an attribute, of course, also add the corresponding getter and setter, then demand because I added a constructor with parameters, because I’m new in other places the object model.
Then,,,
The problem arises.
I’ll just give you an error number of 400.
At first, I thought it was the problem of adding attributes, but after checking, I found it was not the problem.
The problem is the constructor for the Model Java file.
Solution: Add another no-arguments constructor to the Model Java file. The explanation is below.
As for why, it’s up to you to understand how spring MVC passes parameters between front and back.
Originally I didn’t add a constructor, each model will bring a with no parameters by default constructor, then the front desk the data format of encapsulation and attributes of the model as long as the background, and then spring MVC can own in the background, according to the model to the front desk to get data, corresponding to pack into the @ RequestBody Appportmanage detail, this parameter, is the premise of the implementation, your model has a default constructor, with no arguments, Then the system itself goes to new an object, and then it goes to load the data into it. Then you can use it.
Because, I have updated the model constructor, if you don’t write constructor with no parameters, so the original model’s own without arguments constructor, then the controler layer, is in the foreground of data obtained, to loading data, he will not according to your arguments constructor with a new object model you want, so that problems just appeared.
Then, after today’s error, you’ll know exactly how the data in the background and in the front corresponds. Originally I just thought, as long as the consistent data model is ok.
Now, you know, oh, it has to do with constructors.
Why did I delete the empty constructor?Because the IDE tells me that the constructor is useless, and I delete it. And then I was miserable. Oh, Sid!!
The reason I gave this error is a little bit deeper, because this error gives you an idea of how springMVC’s annotations work, and if you know IOC, which is what Spring talks about dependency injection and inversion of control, you’ll understand this error even better.
 
 

ubuntu-how to solve the error-Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release

  

Error in Sudo Apt-Get Update:
“Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry ‘main/binary – i386/Packages in the Release file (Wrong sources. The list entry or malformed The file”
Solution:
1, open/etc/apt/sources list. D/Google – chrome. The list file (either with vim and gedit) :
sudo vim/etc/apt/sources list. D/Google – chrome. The list
2, modify the file contents:
is:
deb http://dl.google.com/linux/chrome/deb/ stable main
,
deb [arch = amd64] http://dl.google.com/linux/chrome/deb/ stable main
3, execute the update command again to pass the
sudo apt-get update
Reference:
http://www.omgubuntu.co.uk/2016/03/fix-failed-to-fetch-google-chrome-apt-error-ubuntu

Solve the problem of Failed to load resource: net::ERR_CONNECTION_REFUSED

The intuitive mistake in this problem is that the access is different. The first reaction is related to the firewall, but after thinking that I am visiting a local project, it has nothing to do with the firewall. Later, I thought it might be the wrong address. The IP number is 127.0.0.1, so it must be the wrong port. Sure enough, the front end was accessing port 8000, but the server was listening on port 9999. Just make it consistent.

Use sc command under CMD, report openservice failed 1060 error

Use sc command under CMD to delete the tomcat service and report openservice failed 1060 error
Reason: The status of the Tomcat service in the service is disabled. If the status is changed to automatic, sc DELETE Tomcat can be used
Note: Although the service name is Apache Tomcat, you do not need to add Apache when removing the Tomcat service
Conclusion:
There are two ways to delete Windows services:
Option 1: start — run — cmd.exe with the Windows command
, then type sc to see it. The method is simple:
sc delete “Service name” (if there is a space in the Service name, you need to put quotes around it)
as above: sc delete Service

open the registry editor and find the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services generally the service will display a key with the same name here, just delete the key directly.

failed to render and update auto layout status for….

So this fail to Update Auto Layout error doesn’t affect the operation, but it’s always there, and it goes away occasionally
Check to see if you have IBDesignable in your code (you’re using third-party stuff with IBDesignable). Xcode8 is buggy, so it always has a Red Cross
Solution: One: You can find the third party to delete ib or leave it alone.

Second: When using XIB, delete the word bound to class, then restart Xcode and then add the word bound to class back when running…

I found IB_DESIGNABLE and commented out the sentence. Then I tried the second method, rebooted it, and it really did work. So I decided to blog about it and share it.
//IB_DESIGNABLE

http://write.blog.csdn.net/postedit